From 23cebd388bfaf6a52c9a9a1009f506c14a5006a0 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 16 Dec 2023 19:28:02 +0800 Subject: [PATCH] :construction_worker: Update docker python to 3.12 --- Dockerfile | 8 ++++---- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ef06089f..3a826119 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 main --recursive https://github.com/PaiGramTeam/PaiGram.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 diff --git a/pyproject.toml b/pyproject.toml index befb568e..63651cae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,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" } gcsim-pypi = "^2.8.2.10"