mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-05-11 18:11:05 +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 \
|
||||
|
||||
Reference in New Issue
Block a user