prthm11 commited on
Commit
52c4ffb
·
verified ·
1 Parent(s): 96b97e7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -130,9 +130,9 @@ ENV FLASK_APP=app.py \
130
  # Expose port
131
  EXPOSE 7860
132
 
133
- # Healthcheck (lightweight endpoint; change if your app uses a different path)
134
- HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
135
- CMD curl -f http://localhost:7860/healthz || exit 1
136
 
137
  # Single worker avoids multiple processes duplicating model memory on CPU-heavy workloads.
138
  CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860", "-w", "1", "--threads", "4", "-k", "gthread", "--timeout", "0", "--graceful-timeout", "0"]
 
130
  # Expose port
131
  EXPOSE 7860
132
 
133
+ # # Healthcheck (lightweight endpoint; change if your app uses a different path)
134
+ # HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
135
+ # CMD curl -f http://localhost:7860/healthz || exit 1
136
 
137
  # Single worker avoids multiple processes duplicating model memory on CPU-heavy workloads.
138
  CMD ["gunicorn", "app:app", "-b", "0.0.0.0:7860", "-w", "1", "--threads", "4", "-k", "gthread", "--timeout", "0", "--graceful-timeout", "0"]