Update Dockerfile

fix chmod
This commit is contained in:
simonmcnair 2025-03-10 21:12:25 +00:00 committed by GitHub
parent 7a1a86e168
commit 48955a1a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,6 @@ RUN if [ "$PUID" -ne "0" ]; then \
echo "root group detected" ; \
fi
RUN chown -R "$PUID:$PGID" /stable-diffusion
USER $PUID:$PGID
ENV ROOT=/stable-diffusion
@ -52,6 +51,8 @@ RUN --mount=type=cache,target="$USER_HOME"/.cache/pip \
git reset --hard 276f8fce9f5a80b500947fb5745a4dde9e84622d && \
pip install -r requirements.txt
RUN chown -R "$PUID:$PGID" "${ROOT}"
WORKDIR ${ROOT}
COPY --chown=$PUID:$PGID . /docker
RUN chmod u+x /docker/entrypoint.sh && cp /docker/extra_model_paths.yaml ${ROOT}