mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-09 00:13:55 +00:00
Update Dockerfile
This commit is contained in:
parent
8efc56d3ad
commit
4bd3e0bed2
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ RUN chown -R "$PUID:$PGID" /stable-diffusion-webui
|
||||||
# drop permissions (if build targets non root)
|
# drop permissions (if build targets non root)
|
||||||
USER $PUID:$PGID
|
USER $PUID:$PGID
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
git clone https://github.com/lllyasviel/Fooocus.git ${ROOT} && \
|
git clone https://github.com/lllyasviel/Fooocus.git ${ROOT} && \
|
||||||
cd ${ROOT} && \
|
cd ${ROOT} && \
|
||||||
git checkout ${BRANCH} && \
|
git checkout ${BRANCH} && \
|
||||||
|
|
@ -65,13 +65,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \
|
||||||
pip install -r requirements_versions.txt
|
pip install -r requirements_versions.txt
|
||||||
|
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.21-cp310-cp310-linux_x86_64.whl \
|
--mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.21-cp310-cp310-linux_x86_64.whl \
|
||||||
pip install /xformers-0.0.21-cp310-cp310-linux_x86_64.whl
|
pip install /xformers-0.0.21-cp310-cp310-linux_x86_64.whl
|
||||||
|
|
||||||
WORKDIR ${ROOT}
|
WORKDIR ${ROOT}
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/pip \
|
RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
git fetch && \
|
git fetch && \
|
||||||
git checkout ${BRANCH} && \
|
git checkout ${BRANCH} && \
|
||||||
git reset --hard ${SHA} && \
|
git reset --hard ${SHA} && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue