Private
Public Access
1
0
Files
rasmusbendtsendk/Dockerfile
Rasmus 3dfa3da397
All checks were successful
Redeploy landing on Push / Explore-Gitea-Actions (push) Successful in 7s
eventstream and longer timeout
2025-12-22 21:38:12 +01:00

18 lines
483 B
Docker

# Use a slim Python image
FROM python:3.11-slim
# Prevent Python from writing .pyc files and enable unbuffered logging
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 5001
# Increase timeout to 5 minutes (300s) and use threads to handle long waits
CMD ["gunicorn", "--bind", "0.0.0.0:5001", "--timeout", "300", "--worker-class", "gthread", "--threads", "4", "app:app"]