Spaces:
Sleeping
Sleeping
| # Use a standard Python base image | |
| FROM python:3.12-slim | |
| # Set the working directory inside the container | |
| WORKDIR /code | |
| # First, update the package lists | |
| RUN apt-get update | |
| # Now, install ffmpeg. The -y flag auto-confirms the installation. | |
| RUN apt-get install -y ffmpeg | |
| # Copy the requirements file first to leverage Docker's layer caching | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install the Python dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all your application files into the container | |
| COPY ./. /code/ | |
| # Tell Docker that the container will listen on port 7860 (standard for HF Spaces) | |
| EXPOSE 7860 | |
| # The command to run when the container starts | |
| CMD ["python3", "app.py"] |