Bin29 commited on
Commit
0a6c24b
·
1 Parent(s): 100c4b9

Revert "chore(hf): add run-log probe markers and stderr heartbeat"

Browse files

This reverts commit 100c4b9a4b67b24e97a5a912bfef92f0d6edbbb8.

Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -35,8 +35,8 @@ RUN npm install && npm --prefix frontend install
35
  COPY . .
36
  RUN npm run build
37
 
38
- # 7. 启动脚本(run logs 探针)
39
- RUN printf '#!/bin/bash\nset -e\necho "BOOT_STDOUT $(date -Is)"\necho "BOOT_STDERR $(date -Is)" 1>&2\n(while true; do echo "HEARTBEAT_STDERR $(date -Is)" 1>&2; sleep 15; done) &\nredis-server --daemonize yes\nexec npm run start\n' > /app/start.sh && chmod +x /app/start.sh
40
 
41
  ENV PORT=7860
42
  EXPOSE 7860
 
35
  COPY . .
36
  RUN npm run build
37
 
38
+ # 7. 启动脚本
39
+ RUN printf '#!/bin/bash\nredis-server --daemonize yes\nnpm run start' > /app/start.sh && chmod +x /app/start.sh
40
 
41
  ENV PORT=7860
42
  EXPOSE 7860