From 969f22937ee51076ebb1734c33ed5319697a9ed8 Mon Sep 17 00:00:00 2001 From: xiao Date: Tue, 17 Dec 2024 23:12:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20Dockerfile=20?= =?UTF-8?q?=E4=BB=A5=E4=BC=98=E5=8C=96=E8=99=9A=E6=8B=9F=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=92=8C=20Python=20=E5=BA=93=E5=AE=89?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d91f4c..57afd36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,20 +9,21 @@ RUN apk update && apk upgrade \ RUN python3 -m venv /www/server/panel/pyenv ENV PATH="/www/server/panel/pyenv/bin:$PATH" +# 确保虚拟环境中的python和pip具有执行权限 +RUN chmod +x /www/server/panel/pyenv/bin/python3 \ + && chmod +x /www/server/panel/pyenv/bin/pip3 + # 安装Python和pip包 RUN pip install --upgrade pip \ && pip install Pillow psutil pyinotify pycryptodome upyun oss2 pymysql qrcode qiniu redis pymongo Cython configparser cos-python-sdk-v5 supervisor gevent gevent-websocket pyopenssl \ && pip install flask==1.1.4 \ && pip install Pillow -U -# 确保虚拟环境中的python和pip具有执行权限 -RUN chmod +x /www/server/panel/pyenv/bin/python3 \ - && chmod +x /www/server/panel/pyenv/bin/pip3 - # 创建符号链接 RUN ln -sf /www/server/panel/pyenv/bin/pip3 /usr/bin/btpip \ && ln -sf /www/server/panel/pyenv/bin/python3 /usr/bin/btpython + # 复制脚本 COPY ["bt.sh", "init_mysql.sh", "install_panel.sh", "/"]