21 lines
571 B
Docker
21 lines
571 B
Docker
FROM ubuntu:latest
|
|
|
|
# 更新並安裝必要的工具後清理暫存檔案以減小映像檔大小
|
|
RUN apt update \
|
|
&& apt install -y curl \
|
|
&& apt clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# 複製私人證書到容器中
|
|
COPY rootCA.pem /usr/local/share/ca-certificates/rootCA.crt
|
|
COPY 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"] |