chore: 修复依赖异常,优化 dockerfile 流程

This commit is contained in:
amtoaer
2024-01-04 23:34:03 +08:00
parent 3defb07325
commit 31efedbde9
3 changed files with 10 additions and 9 deletions

View File

@@ -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 \