Spaces:
Runtime error
Runtime error
| FROM python:3.9-slim | |
| # This ENV var tells Debian-based images like this one to be non-interactive. | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Set the working directory | |
| WORKDIR /code | |
| # Copy just the requirements file to leverage Docker cache | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # This command will be run when the container starts | |
| CMD ["python", "app.py"] | |