File size: 585 Bytes
e1d547d 38b5716 e1d547d 9eb3041 76d0ff1 e1d547d 38b5716 16245b2 |
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 |
FROM python:3.10-slim
# Install system dependencies for video processing and Git
RUN apt-get update && apt-get install -y git ffmpeg libsm6 libxext6
# Set the working directory
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Pre-download model weights on CPU during build
COPY download_model.py .
RUN python download_model.py
# Copy the rest of the application code
COPY . .
# Expose the port for Gradio (default is 7860)
EXPOSE 7860
# Start the application
CMD ["python", "app.py"]
|