Skip to content

Commit

Permalink
chore: 修复依赖异常,优化 dockerfile 流程
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoaer committed Jan 4, 2024
1 parent 3defb07 commit 31efedb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 31efedb

Please sign in to comment.