chore: 更新 Dockerfile 以优化虚拟环境权限设置

This commit is contained in:
xiao 2024-12-17 23:16:48 +08:00
parent 969f22937e
commit 26f1abe052

View File

@ -10,8 +10,7 @@ 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
RUN chmod -R 700 /www/server/panel/pyenv/bin/
# 安装Python和pip包
RUN pip install --upgrade pip \