Spaces:
heroo
/
Running

heroo commited on
Commit
8b90bc8
·
verified ·
1 Parent(s): 3f2cbb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -35,6 +35,11 @@ EXPOSE 11888
35
  WORKDIR /data
36
  RUN chmod 777 -R /data
37
 
 
 
 
 
 
 
38
  # 启动服务
39
- CMD nohup cloudflared tunnel --no-autoupdate run --token $CF_TOKEN & \
40
- /app/deeplx
 
35
  WORKDIR /data
36
  RUN chmod 777 -R /data
37
 
38
+ # 创建启动脚本
39
+ RUN echo '#!/bin/sh' > /start.sh && \
40
+ echo 'nohup cloudflared tunnel --no-autoupdate run --token $CF_TOKEN &' >> /start.sh && \
41
+ echo '/app/deeplx' >> /start.sh && \
42
+ chmod +x /start.sh
43
+
44
  # 启动服务
45
+ CMD ["/start.sh"]