mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-12-06 07:12:11 +01:00
Update Dockerfile
fix chmod
This commit is contained in:
parent
7a1a86e168
commit
48955a1a98
|
|
@ -41,7 +41,6 @@ RUN if [ "$PUID" -ne "0" ]; then \
|
||||||
echo "root group detected" ; \
|
echo "root group detected" ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUN chown -R "$PUID:$PGID" /stable-diffusion
|
|
||||||
USER $PUID:$PGID
|
USER $PUID:$PGID
|
||||||
|
|
||||||
ENV ROOT=/stable-diffusion
|
ENV ROOT=/stable-diffusion
|
||||||
|
|
@ -52,6 +51,8 @@ RUN --mount=type=cache,target="$USER_HOME"/.cache/pip \
|
||||||
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
|
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
RUN chown -R "$PUID:$PGID" "${ROOT}"
|
||||||
|
|
||||||
WORKDIR ${ROOT}
|
WORKDIR ${ROOT}
|
||||||
COPY --chown=$PUID:$PGID . /docker
|
COPY --chown=$PUID:$PGID . /docker
|
||||||
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}
|
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue