mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
👷 Update docker python to 3.12
This commit is contained in:
parent
01b576f9f5
commit
23cebd388b
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user