rexcloaa commited on
Commit
706efb8
·
verified ·
1 Parent(s): ab74f61

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -31,5 +31,6 @@ RUN curl -JLO https://raw.githubusercontent.com/bincooo/chatgpt-adapter/refs/hea
31
  RUN unzip bin.zip && tree .
32
  RUN mkdir log && chmod -R 777 /app
33
  ENV ARG "--port 7860"
34
- CMD ["./server ${ARG}"]
35
- ENTRYPOINT ["sh", "-c"]
 
 
31
  RUN unzip bin.zip && tree .
32
  RUN mkdir log && chmod -R 777 /app
33
  ENV ARG "--port 7860"
34
+
35
+ # 启动服务器并保持活跃
36
+ CMD ["sh", "-c", "./server ${ARG} & while true; do curl -s http://localhost:7860 > /dev/null; sleep 1800; done"]