mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-06-26 09:52:20 +08:00
chore: 修复依赖异常,优化 dockerfile 流程
This commit is contained in:
11
Dockerfile
11
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 \
|
||||
|
||||
6
poetry.lock
generated
6
poetry.lock
generated
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user