db2 / Dockerfile
Dooratre's picture
Update Dockerfile
48009ec verified
Raw
History Blame Contribute Delete
334 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
EXPOSE 7860
# Use config file instead of command line args
# This supports ALL gunicorn options including keep_alive
CMD ["gunicorn", "-c", "gunicorn_config.py", "app:app"]