mike23415 commited on
Commit
d998661
·
verified ·
1 Parent(s): 74f890a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -44,8 +44,8 @@ ENV TORCH_HOME=/app/.cache/torch
44
  EXPOSE 5000
45
 
46
  # Health check
47
- HEALTHCHECK --interval=30s --timeout=30s --start-period=60s --retries=3 \
48
- CMD curl -f http://localhost:5000/health || exit 1
49
 
50
  # Run the application with gunicorn
51
- CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--timeout", "120", "--keep-alive", "2", "app:app"]
 
44
  EXPOSE 5000
45
 
46
  # Health check
47
+ HEALTHCHECK --interval=30s --timeout=30s --start-period=120s --retries=3 \
48
+ CMD curl -f http://localhost:5000/ || exit 1
49
 
50
  # Run the application with gunicorn
51
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--timeout", "300", "--keep-alive", "2", "--preload", "app:app"]