lydgs commited on
Commit
652d28d
·
verified ·
1 Parent(s): f117d31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -15,10 +15,12 @@ COPY ./config.yaml /app/config.yaml
15
  # 安装 requests(同步脚本依赖)
16
  RUN pip install requests --no-cache-dir
17
 
18
- # 复制同步脚本
19
  COPY ./sync_cliproxy_cleanup.py /app/sync_cliproxy_cleanup.py
 
 
20
 
21
  EXPOSE 7860
22
 
23
- # 启动命令:后台运行同步守护进程,前台运行 litellm
24
- CMD python3 /app/sync_cliproxy_cleanup.py & exec litellm --config /app/config.yaml --port 7860 --num_workers 9
 
15
  # 安装 requests(同步脚本依赖)
16
  RUN pip install requests --no-cache-dir
17
 
18
+ # 复制同步脚本和启动脚本
19
  COPY ./sync_cliproxy_cleanup.py /app/sync_cliproxy_cleanup.py
20
+ COPY ./start.sh /app/start.sh
21
+ RUN chmod +x /app/start.sh
22
 
23
  EXPOSE 7860
24
 
25
+ # 使用启动脚本作为容器入口
26
+ ENTRYPOINT ["/app/start.sh"]