👷 Update docker python to 3.12

This commit is contained in:
xtaodada 2023-12-16 19:28:02 +08:00
parent f2d0edab2d
commit 33e3f6c6ec
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
3 changed files with 381 additions and 363 deletions

View File

@ -1,16 +1,16 @@
FROM python:3.10.10-buster
FROM python:3.12-bookworm
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
LANG=zh_CN.UTF-8 \
SHELL=/bin/bash
SHELL ["/bin/bash", "-c"]
WORKDIR /app
RUN echo "deb http://ftp.us.debian.org/debian buster main non-free" >> /etc/apt/sources.list.d/fonts.list \
RUN echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/apt/sources.list.d/fonts.list \
&& apt update \
# clone
&& apt install git wget curl ffmpeg -y \
&& git clone -b sr --recursive https://github.com/PaiGramTeam/PamGram.git /app \
# install dependencies \
&& pip install virtualenv==20.19.0 poetry==1.3.2 \
&& pip install virtualenv poetry \
&& python3 -m virtualenv venv/ \
&& . venv/bin/activate \
&& poetry config virtualenvs.create false \
@ -34,6 +34,6 @@ RUN echo "deb http://ftp.us.debian.org/debian buster main non-free" >> /etc/apt/
~/.cache/pip \
~/.cache/pypoetry \
# Add the wait script to the image
&& wget -O /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait \
&& wget -O /wait https://github.com/ufoscout/docker-compose-wait/releases/download/2.12.1/wait \
&& chmod +x /wait
ENTRYPOINT /wait && venv/bin/alembic upgrade head && venv/bin/python run.py

734
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ async-lru = "^2.0.4"
thefuzz = "^0.20.0"
cryptography = "^41.0.4"
pillow = "^10.0.1"
playwright = "^1.39.0"
playwright = "1.39.0"
aiosqlite = { extras = ["sqlite"], version = "^0.19.0" }
simnet = { git = "https://github.com/PaiGramTeam/SIMNet" }
psutil = "^5.9.6"