feat: 安裝私人證書

This commit is contained in:
Jeffery
2026-03-26 09:39:41 +08:00
parent 9335cf585a
commit 46006d3a0d
3 changed files with 62 additions and 0 deletions

View File

@@ -6,8 +6,16 @@ RUN apt update \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
# 複製私人證書到容器中
COPY ./JSC.Downloader/rootCA.pem /usr/local/share/ca-certificates/rootCA.crt
COPY ./JSC.Downloader/jsc.idv.me+4.pem /usr/local/share/ca-certificates/jsc.idv.me+4.crt
# 複製入口腳本到容器中
COPY entrypoint.sh /entrypoint.sh
# 更新 CA 證書以確保系統信任新的證書
RUN update-ca-certificates
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]