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
9a36d6bf35
commit
3db97c9c17
|
|
@ -62,12 +62,20 @@ ENV LD_PRELOAD=libtcmalloc.so
|
||||||
COPY . /docker
|
COPY . /docker
|
||||||
RUN pip install pydantic==1.10.21
|
RUN pip install pydantic==1.10.21
|
||||||
|
|
||||||
RUN \
|
RUN if [ -d "/opt/conda/lib/python3.10" ]; then \
|
||||||
|
echo Python 3.10 detected; \
|
||||||
|
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.10/site-packages/gradio/routes.py ;\
|
||||||
|
elif [ -d "/opt/conda/lib/python3.11" ]; then \
|
||||||
|
echo Python 3.11 detected; \
|
||||||
|
sed -i 's/in_app_dir = .*/in_app_dir = True/g' /opt/conda/lib/python3.11/site-packages/gradio/routes.py ;\
|
||||||
|
fi && \
|
||||||
# mv ${ROOT}/style.css ${ROOT}/user.css && \
|
# mv ${ROOT}/style.css ${ROOT}/user.css && \
|
||||||
# one of the ugliest hacks I ever wrote \
|
# 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 && \
|
# updated from 3.10.to 3.11
|
||||||
git config --global --add safe.directory '*'
|
git config --global --add safe.directory '*'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
WORKDIR ${ROOT}
|
WORKDIR ${ROOT}
|
||||||
ENV NVIDIA_VISIBLE_DEVICES=all
|
ENV NVIDIA_VISIBLE_DEVICES=all
|
||||||
ENV CLI_ARGS=""
|
ENV CLI_ARGS=""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue