👷 Fix docker pdm build

fix #63
This commit is contained in:
omg-xtao 2024-06-09 12:44:02 +00:00 committed by GitHub
parent f05c332a45
commit 1ac9cc865d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,10 +10,13 @@ RUN echo "deb http://ftp.us.debian.org/debian bookworm main non-free" >> /etc/ap
&& apt install git wget curl ffmpeg -y \
&& git clone -b sr --recursive https://github.com/PaiGramTeam/PamGram.git /app \
# install dependencies \
&& pip install virtualenv \
&& pip install virtualenv pdm \
&& python3 -m virtualenv venv/ \
&& . venv/bin/activate \
&& pip install -r requirements.txt \
&& pdm use -f venv \
&& pdm config pypi.url https://pypi.tuna.tsinghua.edu.cn/simple/ \
&& pdm install \
&& pdm install -G :all \
&& playwright install chromium \
&& playwright install-deps chromium \
## set timezone