stable-diffusion-webui/Dockerfile

38 lines
941 B
Docker
Raw Normal View History

2023-04-16 20:48:03 +03:00
ARG IMAGE=tukirito/sygil-webui:base
2022-10-04 14:57:48 +03:00
# Use the base image
2022-10-04 14:57:48 +03:00
FROM ${IMAGE}
# Set the working directory
2022-10-04 14:57:48 +03:00
WORKDIR /workdir
# Use the specified shell
2022-10-04 14:57:48 +03:00
SHELL ["/bin/bash", "-c"]
# Set environment variables
2022-10-04 14:57:48 +03:00
ENV PYTHONPATH=/sd
# Expose the required port
2022-10-04 14:57:48 +03:00
EXPOSE 8501
# Copy necessary files and directories
COPY ./entrypoint.sh /sd/
2022-10-05 03:03:06 +03:00
COPY ./data/DejaVuSans.ttf /usr/share/fonts/truetype/
COPY ./data /sd/data
COPY ./images /sd/images
COPY ./scripts /sd/scripts
COPY ./ldm /sd/ldm
COPY ./frontend /sd/frontend
COPY ./configs /sd/configs
COPY ./configs/webui/webui_streamlit.yaml /sd/configs/webui/userconfig_streamlit.yaml
COPY ./.streamlit /sd/.streamlit
COPY ./optimizedSD /sd/optimizedSD
# Set the entrypoint
ENTRYPOINT ["/sd/entrypoint.sh"]
# Create .streamlit directory and set up credentials.toml
RUN mkdir -p ~/.streamlit \
&& echo "[general]" > ~/.streamlit/credentials.toml \
&& echo "email = \"\"" >> ~/.streamlit/credentials.toml