BBrother commited on
Commit
8edef8f
1 Parent(s): b473cc6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -43,8 +43,12 @@ RUN chmod 777 ./PandoraNext
43
  # 创建全局缓存目录并提供最宽松的权限
44
  RUN mkdir /.cache && chmod 777 /.cache
45
 
 
 
 
 
46
  # 开放端口
47
  EXPOSE 8081 7860
48
 
49
  # 启动命令
50
- CMD ["sh", "-c", "nohup java -jar pandoraNext-0.4.7.3-SNAPSHOT.jar --server.port=8081 --deployWay=releases --deployPosition=default Or default > myput.log 2>&1 &"]
 
43
  # 创建全局缓存目录并提供最宽松的权限
44
  RUN mkdir /.cache && chmod 777 /.cache
45
 
46
+ # 复制启动脚本
47
+ COPY entrypoint.sh /app/entrypoint.sh
48
+ RUN chmod +x /app/entrypoint.sh
49
+
50
  # 开放端口
51
  EXPOSE 8081 7860
52
 
53
  # 启动命令
54
+ CMD ["/app/entrypoint.sh"]