Update Dockerfile
Browse files- 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=
|
48 |
-
CMD curl -f http://localhost:5000/
|
49 |
|
50 |
# Run the application with gunicorn
|
51 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--timeout", "
|
|
|
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"]
|