From 6fb41b24237177a807cb03ab1d06c37e4565b44f Mon Sep 17 00:00:00 2001 From: xiao Date: Wed, 18 Dec 2024 15:57:39 +0800 Subject: [PATCH] Update Dockerfile to expose specific ports and maintain health check support for HTTPS --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d78fe04..98d3a02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,8 +41,8 @@ RUN echo btpanel | bt 6 \ ENTRYPOINT ["/bin/sh","-c","/bt.sh"] -# 暴漏所有端口 -EXPOSE 0-65535 +# 暴漏特定端口 +EXPOSE 22 80 443 888 3306 8888 # 健康检查 HEALTHCHECK --interval=5s --timeout=3s CMD prot="http"; if [ -f "/www/server/panel/data/ssl.pl" ]; then prot="https"; fi; curl -k -i $prot://127.0.0.1:$(cat /www/server/panel/data/port.pl)$(cat /www/server/panel/data/admin_path.pl) | grep -E '(200|404)' || exit 1 \ No newline at end of file