saadpie commited on
Commit
ba0ad9f
·
verified ·
1 Parent(s): cc3ff80

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -27,18 +27,19 @@ WORKDIR /data
27
  ENV APP_PORT=7860
28
  ENV TERMINAL_PASSWORD="changeme123"
29
 
 
 
30
  EXPOSE 7860
31
 
32
- # Health check so HF knows container is ready
33
  HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=3 \
34
- CMD curl -sf -u admin:${TERMINAL_PASSWORD} http://localhost:${APP_PORT}/ || exit 1
35
 
36
  ENTRYPOINT ["/usr/bin/tini", "--"]
37
 
38
- # Critical: --interface 0.0.0.0 so HF proxy can route traffic
39
  CMD ["/usr/local/bin/ttyd", \
40
  "--writable", \
41
  "--interface", "0.0.0.0", \
42
- "--port", "${APP_PORT}", \
43
  "--credential", "admin:changeme123", \
44
  "bash"]
 
27
  ENV APP_PORT=7860
28
  ENV TERMINAL_PASSWORD="changeme123"
29
 
30
+ # debug
31
+
32
  EXPOSE 7860
33
 
 
34
  HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=3 \
35
+ CMD curl -sf -u admin:${TERMINAL_PASSWORD} http://localhost:7860/ || exit 1
36
 
37
  ENTRYPOINT ["/usr/bin/tini", "--"]
38
 
39
+ # ✅ Fixed: hardcoded port + password (no shell expansion needed)
40
  CMD ["/usr/local/bin/ttyd", \
41
  "--writable", \
42
  "--interface", "0.0.0.0", \
43
+ "--port", "7860", \
44
  "--credential", "admin:changeme123", \
45
  "bash"]