chore: polish health check output

This commit is contained in:
2026-05-16 15:10:22 +00:00
parent a24cfa6ce3
commit ac57fff0ad
2 changed files with 56 additions and 35 deletions
+3 -9
View File
@@ -1,21 +1,15 @@
FROM ubuntu:latest
# 更新並安裝必要的工具後清理暫存檔案以減小映像檔大小
RUN apt update \
&& apt install -y curl \
&& apt clean \
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl \
&& 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"]
ENTRYPOINT ["/entrypoint.sh"]