-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (24 loc) · 1.16 KB
/
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
FROM continuumio/miniconda3
ENV SHELL=/bin/bash
RUN apt-get update && \
apt-get install -y openssh-server && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
COPY ./environment.yaml /workspace/stable-diffusion/environment.yaml
COPY ./setup.py /workspace/stable-diffusion/setup.py
WORKDIR /workspace/stable-diffusion
RUN conda env create -f environment.yaml && \
conda clean -afy && \
pip cache purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install additional packages in the ldm environment
RUN /bin/bash -c "source /opt/conda/etc/profile.d/conda.sh && conda activate ldm && pip install librosa moviepy"
WORKDIR /workspace
RUN rm -rf /workspace/stable-diffusion && git clone https://gpihl:[email protected]/gpihl/stable-diffusion.git
COPY ./model.ckpt /workspace/stable-diffusion/models/ldm/stable-diffusion-v1/model.ckpt
RUN /bin/bash -c "source /opt/conda/etc/profile.d/conda.sh && conda activate ldm && pip install taming-transformers-rom1504 clip"
ADD start.sh /start.sh
RUN chmod a+x /start.sh
CMD [ "/start.sh" ]