Spaces:
Sleeping
Sleeping
| FROM python:3.11 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the application code | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the environment variable files into the container | |
| # COPY .env /app/.env | |
| # COPY .flaskenv /app/.flaskenv | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Command to run the Flask app using Gunicorn (or Flask run for simple cases) | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"] |