nomid2 commited on
Commit
5a607b6
·
verified ·
1 Parent(s): 15be524

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
  FROM calciumion/new-api:latest
2
 
3
- COPY entrypoint-wrapper.sh /entrypoint-wrapper.sh # 保持这个,它至少确保了 /data 目录
 
4
  RUN chmod +x /entrypoint-wrapper.sh
5
 
6
  ENTRYPOINT ["/entrypoint-wrapper.sh"]
7
 
8
  # 移除 --log-dir 参数,让应用尝试默认日志行为 (希望是 stdout)
9
- CMD []
10
- # 或者,如果 /one-api 不接受空 CMD,尝试只传递必要的非日志参数 (如果它有的话)
11
- # 或者,如果 /one-api 在没有参数时也能运行,CMD [] 就行
 
1
  FROM calciumion/new-api:latest
2
 
3
+ # 保持这个,它至少确保了 /data 目录
4
+ COPY entrypoint-wrapper.sh /entrypoint-wrapper.sh
5
  RUN chmod +x /entrypoint-wrapper.sh
6
 
7
  ENTRYPOINT ["/entrypoint-wrapper.sh"]
8
 
9
  # 移除 --log-dir 参数,让应用尝试默认日志行为 (希望是 stdout)
10
+ CMD []