From 1ad37cbb49425d41cff1888b18f0e165762a8814 Mon Sep 17 00:00:00 2001 From: xiao Date: Sat, 21 Dec 2024 09:26:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=20Dockerfile=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E7=AB=AF=E5=8F=A3=E6=9A=B4=E9=9C=B2=E5=92=8C?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34e0c9c..4cd49d6 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 curl -i http://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 +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