feat: 添加打包宝塔面板并清除www目录操作

This commit is contained in:
yolokk 2025-03-11 18:08:13 +08:00 committed by cnb
parent 3fe6d5475e
commit 0dfa8afa44

View File

@ -54,6 +54,11 @@ RUN echo btpanel | bt 6 \
&& echo "/btpanel" > /www/server/panel/data/admin_path.pl \ && echo "/btpanel" > /www/server/panel/data/admin_path.pl \
&& echo "root:btpaneldocker" | chpasswd && echo "root:btpaneldocker" | chpasswd
# 打包宝塔面板并清除www
RUN bt 2 \
&& tar -zcf /www.tar.gz /www \
&& rm -rf /www
ENTRYPOINT ["/bin/sh","-c","/bt.sh"] ENTRYPOINT ["/bin/sh","-c","/bt.sh"]
# 暴漏特定端口 # 暴漏特定端口