Spaces:
Build error
Build error
File size: 779 Bytes
6409991 b346ad7 6409991 4c95710 6409991 ed5af75 6409991 f4c4a31 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# Use an official Python base image
FROM python:3.9
# Set environment variables
ENV PORT 7860
ENV PYTHONUNBUFFERED=1
# Set workdir
WORKDIR /app
# Install system dependencies (if needed)
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libgl1-mesa-glx \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
ffmpeg \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN ldconfig
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Copy the rest of your code
COPY . .
# Expose the port Streamlit will run on
EXPOSE 7860
# Run Streamlit on container start
CMD streamlit run app.py --server.port $PORT --server.address 0.0.0.0 |