q1340 commited on
Commit
5fb2cc1
·
verified ·
1 Parent(s): ad0b546

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -3
Dockerfile CHANGED
@@ -12,7 +12,6 @@ RUN mkdir -p /tmp/.cli-proxy-api /tmp/logs /run/nginx && chmod -R 777 /tmp /run/
12
 
13
  # 3. 拷贝配置
14
  COPY config.yaml /app/config.yaml
15
- # COPY config.yaml /CLIProxyAPI/config.yaml
16
  COPY nginx.conf /etc/nginx/nginx.conf
17
 
18
  # 4. 环境变量
@@ -24,6 +23,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
24
  CMD curl -f http://127.0.0.1:7860/ || exit 1
25
 
26
  # 6. 启动脚本:后台运行 Nginx,前台运行 API
27
- # CMD ["sh", "-c", "nginx && ./cli-proxy-api --config /app/config.yaml"]
28
- # CMD ["sh", "-c", "nginx && ./cli-proxy-api --config /CLIProxyAPI/config.yaml"]
29
  CMD ["sh", "-c", "nginx && ./cli-proxy-api"]
 
12
 
13
  # 3. 拷贝配置
14
  COPY config.yaml /app/config.yaml
 
15
  COPY nginx.conf /etc/nginx/nginx.conf
16
 
17
  # 4. 环境变量
 
23
  CMD curl -f http://127.0.0.1:7860/ || exit 1
24
 
25
  # 6. 启动脚本:后台运行 Nginx,前台运行 API
 
 
26
  CMD ["sh", "-c", "nginx && ./cli-proxy-api"]