From b458b9c594ded42e01d9071bf316c7abb2d859dc Mon Sep 17 00:00:00 2001 From: xiao Date: Tue, 17 Dec 2024 22:28:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20Dockerfile=20?= =?UTF-8?q?=E4=BB=A5=E4=BF=AE=E5=A4=8D=20Python=20=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E5=B9=B6=E4=BC=98=E5=8C=96=E5=AE=9D=E5=A1=94?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E5=AE=89=E8=A3=85=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c2bf64..b192582 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \