Spaces:
Sleeping
Sleeping
| # Use a base image with Python | |
| FROM python:3.9 | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy all files to the container | |
| COPY . . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose port (Hugging Face requires port 7860) | |
| EXPOSE 7860 | |
| # Run Flask | |
| CMD ["python", "app.py"] | |