From 85b7d3dc9b47d1704b968b781d40487a5c3686e0 Mon Sep 17 00:00:00 2001 From: amtoaer Date: Fri, 5 Jan 2024 23:34:32 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=81=A2=E5=A4=8D=20dockerfile=20?= =?UTF-8?q?=E5=86=99=E6=B3=95=EF=BC=8C=E9=9A=BE=E4=BB=A5=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=BD=86=E5=87=8F=E5=B0=8F=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 961f26f..cec6b58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,16 @@ ENV LANG=zh_CN.UTF-8 \ TZ=Asia/Shanghai \ BILI_IN_DOCKER=true +COPY poetry.lock pyproject.toml ./ + RUN apk add --no-cache ffmpeg tini \ && apk add --no-cache --virtual .build-deps \ gcc \ musl-dev \ libffi-dev \ openssl-dev \ - && pip install poetry - -COPY poetry.lock pyproject.toml ./ - -RUN poetry config virtualenvs.create false \ + && pip install poetry \ + && poetry config virtualenvs.create false \ && poetry install --only main --no-root \ && apk del .build-deps \ && rm -rf \