samwaugh commited on
Commit
e88e192
·
1 Parent(s): 3592c5a

Entry point instead of cmd

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -24,6 +24,5 @@ ENV STUB_MODE=1
24
  # Create data directories
25
  RUN mkdir -p /data/artifacts /data/outputs /data/json_info /data/marker_output
26
 
27
- # One worker is fine (single-user demo)
28
- # Change this line to run your Flask app directly
29
- CMD exec gunicorn -w 1 -k gthread -t 300 -b 0.0.0.0:${PORT} backend.runner.app:app
 
24
  # Create data directories
25
  RUN mkdir -p /data/artifacts /data/outputs /data/json_info /data/marker_output
26
 
27
+ # Use ENTRYPOINT instead of CMD to prevent Hugging Face from overriding
28
+ ENTRYPOINT ["gunicorn", "-w", "1", "-k", "gthread", "-t", "300", "-b", "0.0.0.0:7860", "backend.runner.app:app"]