| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt /app/ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD exec gunicorn --bind 0.0.0.0:$PORT app:app | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt /app/ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD exec gunicorn --bind 0.0.0.0:$PORT app:app | |