🔥 chore: reduce docker size

This commit is contained in:
SigureMo 2024-01-01 01:26:35 +08:00
parent d7b85fb1e9
commit 3a6d1b43f3
No known key found for this signature in database
GPG Key ID: F99A3CD7BD76B247
1 changed files with 2 additions and 3 deletions

View File

@ -6,10 +6,9 @@ LABEL maintainer="siguremo" \
RUN set -x \ RUN set -x \
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \ && sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories \
&& apk add -q --progress --update --no-cache --virtual .build-deps gcc g++ build-base python3-dev libffi-dev \ && apk add -q --progress --update --no-cache --virtual .build-deps gcc g++ build-base python3-dev libffi-dev \
&& apk add -q --progress --update --no-cache ffmpeg python3 py-pip tzdata \ && apk add -q --progress --update --no-cache ffmpeg python3 tzdata \
&& python3 -m venv /opt/venv \ && python3 -m venv /opt/venv \
&& source /opt/venv/bin/activate \ && /opt/venv/bin/pip install --no-cache-dir --pre yutto \
&& pip install --no-cache-dir --pre yutto \
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& apk del --purge .build-deps && apk del --purge .build-deps