From 31efedbde98b2a8aa8bb7e4d24ccd59de584927f Mon Sep 17 00:00:00 2001 From: amtoaer Date: Thu, 4 Jan 2024 23:34:03 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=EF=BC=8C=E4=BC=98=E5=8C=96=20dockerfile=20?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 ++++++----- poetry.lock | 6 +++--- pyproject.toml | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6744e5..961f26f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,18 @@ 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 \ - && poetry config virtualenvs.create false \ - && poetry install --no-dev --no-interaction --no-ansi \ + && pip install poetry + +COPY poetry.lock pyproject.toml ./ + +RUN poetry config virtualenvs.create false \ + && poetry install --only main --no-root \ && apk del .build-deps \ && rm -rf \ /root/.cache \ diff --git a/poetry.lock b/poetry.lock index f3c54f1..8ffc432 100644 --- a/poetry.lock +++ b/poetry.lock @@ -310,9 +310,9 @@ yarl = ">=1.9.4,<1.10.0" [package.source] type = "git" -url = "https://github.com/Nemo2011/bilibili-api" +url = "https://github.com/amtoaer/bilibili-api" reference = "dev" -resolved_reference = "1563f97ce194c8bb55dfb58a49a42743601a126a" +resolved_reference = "9430934968e3dff34530f5d249405f64fd378714" [[package]] name = "black" @@ -2192,4 +2192,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.11" -content-hash = "feebb7a35273ecc150539184cb9330cbf76415e07c96ea4257b0e017b8566dd7" +content-hash = "29158a95aaf890c88940131c298db3199cf6c05254a0af927ee714e67fba2d2f" diff --git a/pyproject.toml b/pyproject.toml index ae0334e..446436c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ readme = "README.md" python = "^3.11" aerich = "0.7.2" aiofiles = "23.2.1" -bilibili-api-python = { git = "https://github.com/Nemo2011/bilibili-api", rev = "dev" } +bilibili-api-python = {git = "https://github.com/amtoaer/bilibili-api", rev = "dev"} dataclasses-json = "0.6.2" loguru = "0.7.2" tortoise-orm = "0.20.0"