vineelagampa commited on
Commit
e9537a4
·
verified ·
1 Parent(s): e477c9c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -61,7 +61,8 @@ RUN mkdir -p /cache/hf /tmp && chmod -R 777 /cache /tmp
61
  EXPOSE 7860
62
 
63
  HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
64
- CMD curl -fsS "http://127.0.0.1:${PORT}/health/" || exit 1
65
 
66
  # ✅ bind to $PORT provided by HF; include proxy headers
67
- CMD ["sh","-c","uvicorn backend:app --host 0.0.0.0 --port ${PORT} --proxy-headers --forwarded-allow-ips='*'"]
 
 
61
  EXPOSE 7860
62
 
63
  HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
64
+ CMD curl -fsS "http://127.0.0.1:${PORT:-7860}/health/" || exit 1
65
 
66
  # ✅ bind to $PORT provided by HF; include proxy headers
67
+ CMD ["sh","-c","uvicorn backend:app --host 0.0.0.0 --port ${PORT:-7860} --proxy-headers --forwarded-allow-ips='*'"]
68
+