mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-12-06 07:12:11 +01:00
Update Dockerfile
This commit is contained in:
parent
7606b12610
commit
0f94b77773
|
|
@ -65,6 +65,7 @@ RUN if [ "$PUID" -ne "0" ]; then \
|
||||||
echo "root group detected" ; \
|
echo "root group detected" ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ENV ROOT=/stable-diffusion-webui-forge
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
|
|
@ -73,12 +74,11 @@ RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
sed -i '/torch/d' requirements_versions.txt && \
|
sed -i '/torch/d' requirements_versions.txt && \
|
||||||
pip install -r requirements_versions.txt
|
pip install -r requirements_versions.txt
|
||||||
|
|
||||||
RUN chown -R "$PUID:$PGID" /stable-diffusion-webui-forge
|
RUN chown -R "$PUID:$PGID" "${ROOT}"
|
||||||
|
|
||||||
# drop permissions (if build targets non root)
|
# drop permissions (if build targets non root)
|
||||||
USER $PUID:$PGID
|
USER $PUID:$PGID
|
||||||
|
|
||||||
ENV ROOT=/stable-diffusion-webui-forge
|
|
||||||
|
|
||||||
COPY --from=download --chown=${PUID}:${PGID} /repositories/ ${ROOT}/repositories/
|
COPY --from=download --chown=${PUID}:${PGID} /repositories/ ${ROOT}/repositories/
|
||||||
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/clip_interrogator/data/* ${ROOT}/interrogate
|
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/clip_interrogator/data/* ${ROOT}/interrogate
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue