Spaces:
Sleeping
Sleeping
| # Use a slim Python image | |
| FROM python:3.10-slim | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy the requirements file and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && pip install -r requirements.txt | |
| # Copy all app files to the container | |
| COPY . . | |
| # Expose the port the app will run on (Hugging Face requires 7860) | |
| EXPOSE 7860 | |
| # Run the Flask app | |
| CMD ["python", "app.py"] | |