Spaces:
Sleeping
Sleeping
| # Use a base Python image | |
| FROM python:3.11-slim-buster | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy requirements.txt and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your application code | |
| COPY . . | |
| # Expose the port your Flask app will run on | |
| EXPOSE 7860 | |
| # Command to run your Flask application with Gunicorn | |
| # Assuming your Flask app instance is named 'app' in app.py | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"] |