mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
ded35ed094
Updates the Dockerfile to include a copy and rename action to create a userconfig_streamlit.yaml out of a webui-streamlit.yaml to provide a permanent userconfig file without causing issues for non dockerized deployments.
30 lines
763 B
Plaintext
30 lines
763 B
Plaintext
ARG IMAGE=hlky/sd-webui:base
|
|
|
|
FROM ${IMAGE}
|
|
|
|
WORKDIR /workdir
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
ENV PYTHONPATH=/sd
|
|
|
|
EXPOSE 8501
|
|
COPY ./runpod_entrypoint.sh /sd/entrypoint.sh
|
|
COPY ./data/DejaVuSans.ttf /usr/share/fonts/truetype/
|
|
COPY ./configs/ /sd/configs/
|
|
copy ./configs/webui/webui_streamlit.yaml /sd/configs/webui/userconfig_streamlit.yaml
|
|
COPY ./data/ /sd/data/
|
|
COPY ./frontend/ /sd/frontend/
|
|
COPY ./gfpgan/ /sd/gfpgan/
|
|
COPY ./images/ /sd/images/
|
|
COPY ./ldm/ /sd/ldm/
|
|
COPY ./models/ /sd/models/
|
|
copy ./optimizedSD/ /sd/optimizedSD/
|
|
COPY ./scripts/ /sd/scripts/
|
|
COPY ./.streamlit/ /sd/.streamlit/
|
|
ENTRYPOINT /sd/entrypoint.sh
|
|
|
|
RUN mkdir -p ~/.streamlit/
|
|
RUN echo "[general]" > ~/.streamlit/credentials.toml
|
|
RUN echo "email = \"\"" >> ~/.streamlit/credentials.toml
|