Spaces:
Sleeping
Sleeping
| # Base image with Python | |
| FROM python:3.10-slim | |
| # Set working directory in container | |
| WORKDIR /app | |
| # Copy dependencies file | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy everything into the container | |
| COPY . . | |
| # Expose the port Hugging Face expects | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |