mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-09-04 23:18:02 +08:00
chore: 恢复 dockerfile 写法,难以复用缓存但减小容器体积
This commit is contained in:
+4
-5
@@ -6,17 +6,16 @@ ENV LANG=zh_CN.UTF-8 \
|
|||||||
TZ=Asia/Shanghai \
|
TZ=Asia/Shanghai \
|
||||||
BILI_IN_DOCKER=true
|
BILI_IN_DOCKER=true
|
||||||
|
|
||||||
|
COPY poetry.lock pyproject.toml ./
|
||||||
|
|
||||||
RUN apk add --no-cache ffmpeg tini \
|
RUN apk add --no-cache ffmpeg tini \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
gcc \
|
gcc \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
&& pip install poetry
|
&& pip install poetry \
|
||||||
|
&& poetry config virtualenvs.create false \
|
||||||
COPY poetry.lock pyproject.toml ./
|
|
||||||
|
|
||||||
RUN poetry config virtualenvs.create false \
|
|
||||||
&& poetry install --only main --no-root \
|
&& poetry install --only main --no-root \
|
||||||
&& apk del .build-deps \
|
&& apk del .build-deps \
|
||||||
&& rm -rf \
|
&& rm -rf \
|
||||||
|
|||||||
Reference in New Issue
Block a user