From 4bd3e0bed28bc27ed1d3f2427e6fa9a66479023c Mon Sep 17 00:00:00 2001 From: simonmcnair <101189766+simonmcnair@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:48:31 +0000 Subject: [PATCH] Update Dockerfile --- services/fooocus/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/fooocus/Dockerfile b/services/fooocus/Dockerfile index 35ad916..890292b 100644 --- a/services/fooocus/Dockerfile +++ b/services/fooocus/Dockerfile @@ -57,7 +57,7 @@ RUN chown -R "$PUID:$PGID" /stable-diffusion-webui # drop permissions (if build targets non root) 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} && \ cd ${ROOT} && \ git checkout ${BRANCH} && \ @@ -65,13 +65,13 @@ RUN --mount=type=cache,target=/root/.cache/pip \ 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 \ pip install /xformers-0.0.21-cp310-cp310-linux_x86_64.whl WORKDIR ${ROOT} -RUN --mount=type=cache,target=/root/.cache/pip \ +RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \ git fetch && \ git checkout ${BRANCH} && \ git reset --hard ${SHA} && \