chore: Update Dockerfile and install_panel.sh for Python environment setup and dependencies management

This commit is contained in:
xiao 2024-12-18 11:53:55 +08:00
parent e39e9e91f8
commit 934b6f9be3
2 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,8 @@
FROM python:3.7.16-alpine
FROM python:3.7.17-alpine
# 切换 alpine 镜像源为腾讯云源,更新包列表并安装依赖
RUN apk update && apk upgrade \
&& apk add curl curl-dev libffi-dev openssl-dev shadow bash zlib-dev g++ make sqlite-dev libpcap-dev jpeg-dev dos2unix libev-dev build-base linux-headers \
&& apk add openssh-sever curl curl-dev libffi-dev openssl-dev shadow bash zlib-dev g++ make sqlite-dev libpcap-dev jpeg-dev dos2unix libev-dev build-base linux-headers \
&& rm -rf /var/cache/apk/*
# 复制脚本

View File

@ -855,8 +855,7 @@ Install_Python_Lib(){
source $pyenv_path/pyenv/bin/activate
pip install -U pip
pip install Pillow psutil pyinotify pycryptodome upyun oss2 pymysql qrcode qiniu redis pymongo Cython configparser cos-python-sdk-v5 supervisor gevent-websocket pyopenssl
pip install flask==1.1.4
pip install Pillow flask psutil pyinotify pycryptodome upyun oss2 pymysql qrcode qiniu redis pymongo Cython configparser cos-python-sdk-v5 supervisor gevent-websocket pyopenssl
pip install Pillow -U
pyenv_bin=$pyenv_path/pyenv/bin