atikur-rabbi commited on
Commit
e54bb6d
β€’
1 Parent(s): 1aa8f9a
Dockerfile CHANGED
@@ -1,24 +1,43 @@
1
  FROM ubuntu:20.04
2
 
3
- LABEL version="1.0"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- RUN apt-get update
6
- RUN apt-get install -y curl sudo
7
- RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
8
- RUN apt-get install -y nodejs
9
 
10
- # set working directory to /app
11
- WORKDIR /app
 
12
 
13
- # copy index.js from current directory into the container at /app
14
- COPY . /app
 
15
 
16
- # install need packages specified in package.json
17
- RUN npm install
18
 
19
- # This allows Heroku bind its PORT the Apps port
20
- # since Heroku needs to use its own PORT before the App can be made accessible to the World
21
- EXPOSE $PORT
 
22
 
23
- # run app when container launches
24
- CMD ["node", "app.js"]
 
 
 
1
  FROM ubuntu:20.04
2
 
3
+ RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ build-essential \
5
+ ca-certificates \
6
+ curl \
7
+ git \
8
+ libgl1-mesa-glx \
9
+ libglib2.0-0 \
10
+ libsm6 \
11
+ libxext6 \
12
+ libxrender-dev \
13
+ python3-dev \
14
+ python3-pip \
15
+ python3-setuptools \
16
+ python3-wheel \
17
+ sudo \
18
+ unzip \
19
+ vim \
20
+ wget \
21
+ && rm -rf /var/lib/apt/lists/*
22
 
23
+ RUN useradd -m huggingface
 
 
 
24
 
25
+ # RUN wget https://github.com/cmdr2/stable-diffusion-ui/releases/download/v2.5.24/Easy-Diffusion-Linux.zip && \
26
+ # unzip Easy-Diffusion-Linux.zip && \
27
+ # rm Easy-Diffusion-Linux.zip
28
 
29
+ RUN mkdir easy-diffusion
30
+ # copy the local repo to the container
31
+ COPY . /home/huggingface/easy-diffusion
32
 
33
+ EXPOSE 9000
 
34
 
35
+ RUN chown -R huggingface /home/huggingface/easy-diffusion
36
+ RUN chmod -R u+x /home/huggingface/easy-diffusion
37
+
38
+ USER huggingface
39
 
40
+ WORKDIR /home/huggingface
41
+
42
+ CMD [ "easy-diffusion/start.sh" ]
43
+
node-shark/Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:20.04
2
+
3
+ LABEL version="1.0"
4
+
5
+ RUN apt-get update
6
+ RUN apt-get install -y curl sudo
7
+ RUN curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
8
+ RUN apt-get install -y nodejs
9
+
10
+ # set working directory to /app
11
+ WORKDIR /app
12
+
13
+ # copy index.js from current directory into the container at /app
14
+ COPY . /app
15
+
16
+ # install need packages specified in package.json
17
+ RUN npm install
18
+
19
+ # This allows Heroku bind its PORT the Apps port
20
+ # since Heroku needs to use its own PORT before the App can be made accessible to the World
21
+ EXPOSE $PORT
22
+
23
+ # run app when container launches
24
+ CMD ["node", "app.js"]
app.js β†’ node-shark/app.js RENAMED
File without changes
package-lock.json β†’ node-shark/package-lock.json RENAMED
File without changes
package.json β†’ node-shark/package.json RENAMED
File without changes
{views β†’ node-shark/views}/css/styles.css RENAMED
File without changes
{views β†’ node-shark/views}/index.html RENAMED
File without changes
{views β†’ node-shark/views}/sharks.html RENAMED
File without changes
old/Dockerfile DELETED
@@ -1,43 +0,0 @@
1
- FROM ubuntu:20.04
2
-
3
- RUN apt-get update && apt-get install -y --no-install-recommends \
4
- build-essential \
5
- ca-certificates \
6
- curl \
7
- git \
8
- libgl1-mesa-glx \
9
- libglib2.0-0 \
10
- libsm6 \
11
- libxext6 \
12
- libxrender-dev \
13
- python3-dev \
14
- python3-pip \
15
- python3-setuptools \
16
- python3-wheel \
17
- sudo \
18
- unzip \
19
- vim \
20
- wget \
21
- && rm -rf /var/lib/apt/lists/*
22
-
23
- RUN useradd -m huggingface
24
-
25
- # RUN wget https://github.com/cmdr2/stable-diffusion-ui/releases/download/v2.5.24/Easy-Diffusion-Linux.zip && \
26
- # unzip Easy-Diffusion-Linux.zip && \
27
- # rm Easy-Diffusion-Linux.zip
28
-
29
- RUN mkdir easy-diffusion
30
- # copy the local repo to the container
31
- COPY . /home/huggingface/easy-diffusion
32
-
33
- EXPOSE 9000
34
-
35
- RUN chown -R huggingface /home/huggingface/easy-diffusion
36
- RUN chmod -R u+x /home/huggingface/easy-diffusion
37
-
38
- USER huggingface
39
-
40
- WORKDIR /home/huggingface
41
-
42
- CMD [ "easy-diffusion/start.sh" ]
43
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{old/scripts β†’ scripts}/bootstrap.sh RENAMED
File without changes
scripts/config.sh ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # get value from environment variable port
2
+ # if not set, use default value 9990
3
+ # export port to environment variable SD_UI_BIND_PORT
4
+ # so that it can be used by other scripts
5
+
6
+ export SD_UI_BIND_PORT=9990||${port}
{old/scripts β†’ scripts}/functions.sh RENAMED
File without changes
{old/scripts β†’ scripts}/install_status.txt RENAMED
File without changes
{old/scripts β†’ scripts}/on_env_start.sh RENAMED
File without changes
old/start.sh β†’ start.sh RENAMED
File without changes