cdn-origin / Dockerfile
apun-007's picture
Upload 5 files
e01511d verified
Raw
History Blame Contribute Delete
356 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir flask requests python-dotenv gunicorn
# HF Spaces requires port 7860
EXPOSE 7860
# Use gunicorn for production; PORT env var injected by HF (always 7860)
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--threads", "4", "--timeout", "60", "server:app"]