From 5fc39017c4a6835879801532a8ce4640242b522b Mon Sep 17 00:00:00 2001 From: xiao Date: Sat, 21 Dec 2024 09:25:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=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 afe8aa7..1da57d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,8 +52,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