chore: 更新 Dockerfile 以修复 Python 符号链接并优化宝塔面板安装脚本

This commit is contained in:
xiao 2024-12-17 22:28:33 +08:00
parent 4b8fa5349d
commit b458b9c594

View File

@ -23,7 +23,9 @@ RUN pyenv_bin=/www/server/panel/pyenv/bin \
&& ln -sf /usr/bin/pip $pyenv_bin/pip3.7 \
&& ln -sf /usr/bin/python $pyenv_bin/python \
&& ln -sf /usr/bin/python $pyenv_bin/python3 \
&& ln -sf /usr/bin/python $pyenv_bin/python3.7
&& ln -sf /usr/bin/python $pyenv_bin/python3.7 \
&& ln -sf $pyenv_bin/pip3.7 /usr/bin/btpip \
&& ln -sf $pyenv_bin/python3.7 /usr/bin/btpython
# 复制脚本
COPY ["bt.sh", "init_mysql.sh", "install_panel.sh", "/"]
@ -32,7 +34,8 @@ COPY ["bt.sh", "init_mysql.sh", "install_panel.sh", "/"]
RUN dos2unix /bt.sh && dos2unix /init_mysql.sh && dos2unix /install_panel.sh
# 下载并安装宝塔面板及 lnmp 环境
RUN echo y | bash /install_panel.sh -P 8888 --ssl-disable \
RUN curl -sSO https://download.bt.cn/install/install_panel.sh \
&& echo y | bash install_panel.sh -P 8888 --ssl-disable \
&& rm -rf /www/server/data/* \
&& echo "docker_bt_alpine" > /www/server/panel/data/o.pl \
&& echo '["memuA", "memuAsite", "memuAdatabase", "memuAcontrol", "memuAfiles", "memuAlogs", "memuAxterm", "memuAcrontab", "memuAsoft", "memuAconfig", "dologin", "memu_btwaf", "memuAssl"]' > /www/server/panel/config/show_menu.json \