-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_sdplus
59 lines (44 loc) · 1.33 KB
/
Dockerfile_sdplus
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM runpod/pytorch:3.10-2.0.0-117 AS runtime
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && \
apt install -y --no-install-recommends \
software-properties-common \
git \
openssh-server \
libglib2.0-0 \
libsm6 \
libgl1 \
libxrender1 \
libxext6 \
ffmpeg \
wget \
curl \
psmisc \
apt-transport-https ca-certificates && \
update-ca-certificates
RUN mkdir -p /workspace/data_protected
RUN mkdir -p /workspace/data_shared
WORKDIR /app
RUN git clone https://github.com/D8-Dreambooth/stable-diffusion-plus.git
WORKDIR /app/stable-diffusion-plus
ADD sdplus/launch_settings.json /app/stable-diffusion-plus/launch_settings.json
RUN pip install --upgrade pip
RUN pip install -U jupyterlab ipywidgets jupyter-archive gdown wheel
RUN pip install -r /app/stable-diffusion-plus/requirements.txt
RUN python -m venv /app/stable-diffusion-plus/venv
ENV PATH="/workspace/stable-diffusion-plus/venv/bin:$PATH"
RUN jupyter nbextension enable --py widgetsnbextension
ADD sdplus/start.sh /start.sh
RUN chmod a+x /start.sh
EXPOSE 22/tcp
EXPOSE 22/udp
EXPOSE 3000/tcp
# Update the Auto1111 WebUI on container start.
ENV UPDATE_WEBUI="false"
# Set for openSSH access. Runpod automatically sets this if configured in user settings.
ENV PUBLIC_KEY=""
ENV JUPYTER_PASSWORD=""
ENV BRANCH="main"
ENV PORT="3000"
SHELL ["/bin/bash", "--login", "-c"]
CMD [ "/start.sh" ]