mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-21 06:14:00 +00:00
Update Dockerfile
sed needs root for the dir it's in
This commit is contained in:
parent
5b81363127
commit
8f74cec7f9
1 changed files with 6 additions and 5 deletions
|
|
@ -76,6 +76,12 @@ RUN --mount=type=cache,target=${USER_HOME}/.cache/pip \
|
||||||
|
|
||||||
RUN chown -R "$PUID:$PGID" "${ROOT}"
|
RUN chown -R "$PUID:$PGID" "${ROOT}"
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
# mv ${ROOT}/style.css ${ROOT}/user.css && \
|
||||||
|
# one of the ugliest hacks I ever wrote \
|
||||||
|
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
|
||||||
|
git config --global --add safe.directory '*'
|
||||||
|
|
||||||
# drop permissions (if build targets non root)
|
# drop permissions (if build targets non root)
|
||||||
USER $PUID:$PGID
|
USER $PUID:$PGID
|
||||||
|
|
||||||
|
|
@ -105,11 +111,6 @@ ENV LD_PRELOAD=libtcmalloc.so
|
||||||
|
|
||||||
COPY --chown=$PUID:$PGID . /docker
|
COPY --chown=$PUID:$PGID . /docker
|
||||||
|
|
||||||
RUN \
|
|
||||||
# mv ${ROOT}/style.css ${ROOT}/user.css && \
|
|
||||||
# one of the ugliest hacks I ever wrote \
|
|
||||||
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py && \
|
|
||||||
git config --global --add safe.directory '*'
|
|
||||||
|
|
||||||
WORKDIR ${ROOT}
|
WORKDIR ${ROOT}
|
||||||
ENV NVIDIA_VISIBLE_DEVICES=all
|
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue