feat: 安裝私人證書
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user