File size: 935 Bytes
7b85f3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1659e0c
 
 
0a21a41
 
 
51f5a72
a22fd6b
 
 
 
0a21a41
1659e0c
0a21a41
 
 
 
51f5a72
0a21a41
51f5a72
0a21a41
c0f99f8
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
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    ca-certificates \
    curl \
    git \
    libgl1-mesa-glx \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender-dev \
    python3-dev \
    python3-pip \
    python3-setuptools \
    python3-wheel \
    sudo \
    unzip \
    vim \
    wget \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m huggingface

# RUN wget https://github.com/cmdr2/stable-diffusion-ui/releases/download/v2.5.24/Easy-Diffusion-Linux.zip && \
#     unzip Easy-Diffusion-Linux.zip && \
#     rm Easy-Diffusion-Linux.zip

RUN mkdir easy-diffusion
# copy the local repo to the container
COPY . /home/huggingface/easy-diffusion

EXPOSE 9000

RUN chown -R huggingface /home/huggingface/easy-diffusion
RUN chmod -R u+x /home/huggingface/easy-diffusion
     
USER huggingface

WORKDIR /home/huggingface

CMD [ "easy-diffusion/start.sh" ]