Private
Public Access
1
0

eventstream and longer timeout
All checks were successful
Redeploy landing on Push / Explore-Gitea-Actions (push) Successful in 7s

This commit is contained in:
2025-12-22 21:38:12 +01:00
parent daaaa9c545
commit 3dfa3da397
2 changed files with 16 additions and 18 deletions

View File

@@ -5,18 +5,14 @@ FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set work directory
WORKDIR /app
# Install dependencies
# We do this before copying the whole app to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code
COPY . .
# Expose the port your app runs on
EXPOSE 5001
CMD ["gunicorn", "--bind", "0.0.0.0:5001", "app:app"]
# 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"]