From 1ac9cc865de5c8d722a7968f813eb8edb0a42902 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:44:02 +0000 Subject: [PATCH] :construction_worker: Fix docker pdm build fix #63 --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fdeff8e..dd9f178 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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