2023-04-16 20:48:03 +03:00
|
|
|
ARG IMAGE=tukirito/sygil-webui:base
|
2022-10-04 14:57:48 +03:00
|
|
|
|
2023-04-14 00:04:38 +03:00
|
|
|
# Use the base image
|
2022-10-04 14:57:48 +03:00
|
|
|
FROM ${IMAGE}
|
|
|
|
|
2023-04-14 00:04:38 +03:00
|
|
|
# Set the working directory
|
2022-10-04 14:57:48 +03:00
|
|
|
WORKDIR /workdir
|
|
|
|
|
2023-04-14 00:04:38 +03:00
|
|
|
# Use the specified shell
|
2022-10-04 14:57:48 +03:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2023-04-14 00:04:38 +03:00
|
|
|
# Set environment variables
|
2022-10-04 14:57:48 +03:00
|
|
|
ENV PYTHONPATH=/sd
|
|
|
|
|
2023-04-14 00:04:38 +03:00
|
|
|
# Expose the required port
|
2022-10-04 14:57:48 +03:00
|
|
|
EXPOSE 8501
|
2023-04-14 00:04:38 +03:00
|
|
|
|
|
|
|
# Copy necessary files and directories
|
2022-12-04 23:09:31 +03:00
|
|
|
COPY ./entrypoint.sh /sd/
|
2022-10-05 03:03:06 +03:00
|
|
|
COPY ./data/DejaVuSans.ttf /usr/share/fonts/truetype/
|
2023-04-14 00:04:38 +03:00
|
|
|
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
|