🔧 chore: cleanup docker build stage

This commit is contained in:
SigureMo 2024-01-14 17:30:09 +08:00
parent 2d71f61597
commit 197afbdd7f
No known key found for this signature in database
GPG Key ID: F99A3CD7BD76B247
1 changed files with 1 additions and 3 deletions

View File

@ -5,12 +5,10 @@ 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 ffmpeg python3 tzdata \ && apk add -q --progress --update --no-cache ffmpeg python3 tzdata \
&& python3 -m venv /opt/venv \ && python3 -m venv /opt/venv \
&& /opt/venv/bin/pip install --no-cache-dir --pre yutto \ && /opt/venv/bin/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
WORKDIR /app WORKDIR /app