Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -1,8 +1,13 @@
|
|
| 1 |
FROM ghcr.io/variantconst/openwebui-monitor:latest
|
| 2 |
|
| 3 |
-
RUN mkdir -p /certs/custom
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
COPY load-ca.sh /certs/
|
| 6 |
-
RUN chmod +x /certs/load-ca.sh
|
|
|
|
| 7 |
|
| 8 |
ENTRYPOINT ["/certs/load-ca.sh"]
|
|
|
|
| 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"]
|