gptapi commited on
Commit
5de2f36
·
verified ·
1 Parent(s): 46d363c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -1,13 +1,12 @@
1
  FROM ghcr.io/variantconst/openwebui-monitor:latest
2
 
3
- RUN mkdir -p /certs/custom && \
4
- chmod 777 /certs && \
5
- chmod 777 /certs/custom
 
6
 
7
- RUN apk add --no-cache openssl # 适用于Alpine基础镜像
 
 
8
 
9
- COPY load-ca.sh /certs/
10
- RUN chmod +x /certs/load-ca.sh && \
11
- chown -R 1000:1000 /certs # 适配非root用户
12
-
13
- ENTRYPOINT ["/certs/load-ca.sh"]
 
1
  FROM ghcr.io/variantconst/openwebui-monitor:latest
2
 
3
+ # 修复关键:安装必要工具并创建证书目录
4
+ RUN apk add --no-cache ca-certificates openssl && \
5
+ mkdir -p /usr/local/share/ca-certificates/custom-ca && \
6
+ chmod 777 /usr/local/share/ca-certificates/custom-ca
7
 
8
+ # 优化后的安全加载脚本
9
+ COPY load-ca.sh /app/
10
+ RUN chmod +x /app/load-ca.sh
11
 
12
+ ENTRYPOINT ["/app/load-ca.sh"]