Update Dockerfile
Browse files- 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 |
-
|
| 35 |
-
|
|
|
|
|
|
| 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"]
|