Update Dockerfile

This commit is contained in:
simonmcnair 2025-03-10 21:13:23 +00:00 committed by GitHub
parent 317055ffa0
commit 7606b12610
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,14 +45,12 @@ RUN if [ "$PUID" -ne "0" ]; then \
echo "root group detected" ; \
fi
# set this to your target branch commit
ARG BRANCH=main SHA=e2f9bcb11d06216d6800676c48d8d74d6fd77a4b
ENV ROOT=/stable-diffusion
RUN chown -R "$PUID:$PGID" /stable-diffusion-webui
RUN chown -R "$PUID:$PGID" "${ROOT}"
# drop permissions (if build targets non root)
USER $PUID:$PGID