-
-
Notifications
You must be signed in to change notification settings - Fork 881
/
Dockerfile
37 lines (29 loc) · 941 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG IMAGE=tukirito/sygil-webui:base
# Use the base image
FROM ${IMAGE}
# Set the working directory
WORKDIR /workdir
# Use the specified shell
SHELL ["/bin/bash", "-c"]
# Set environment variables
ENV PYTHONPATH=/sd
# Expose the required port
EXPOSE 8501
# Copy necessary files and directories
COPY ./entrypoint.sh /sd/
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