From 15b5172bebc07b82ec6ff0214c3f95ed1a32cfb3 Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Sat, 24 Sep 2022 20:21:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E9=95=9C=E5=83=8F=E4=BD=93?= =?UTF-8?q?=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7f826ab9..3846a695 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,16 @@ COPY requirements.txt . RUN python3 -m pip install --upgrade pip \ && pip install -r requirements.txt --prefix="/install" +FROM python:3.10-alpine AS permission + +COPY --from=build --chmod=777 /install /usr/local +RUN chmod -R 777 /usr/local + FROM python:3.10-alpine WORKDIR /src -COPY --from=build --chmod=777 /install /usr/local +COPY --from=permission --chmod=777 /usr/local /usr/local ADD ./src /src RUN apk add --update --no-cache \ @@ -23,7 +28,6 @@ RUN addgroup -S auto_bangumi && \ adduser -S auto_bangumi -G auto_bangumi -h /home/auto_bangumi && \ usermod -s /bin/bash auto_bangumi && \ mkdir -p "/config" && \ - chmod -R 777 /usr/local && \ chmod a+x run.sh && \ chmod a+x getWebUI.sh