mrfrank-ofc commited on
Commit
4194672
·
verified ·
1 Parent(s): adf607e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -17
Dockerfile CHANGED
@@ -1,19 +1,14 @@
1
  FROM node:lts-buster
2
-
3
  RUN apt-get update && \
4
- apt-get install -y \
5
- ffmpeg \
6
- imagemagick \
7
- webp && \
8
- apt-get upgrade -y && \
9
- rm -rf /var/lib/apt/lists/*
10
-
11
- COPY package.json .
12
-
13
- RUN git clone https://github.com/mrfrank-ofc/SUBZERO-MD
14
- COPY . .
15
-
16
- EXPOSE 3000
17
-
18
-
19
- CMD ["pm2-runtime", "start", "index.js"]
 
1
  FROM node:lts-buster
2
+ USER root
3
  RUN apt-get update && \
4
+ apt-get install -y ffmpeg webp git && \
5
+ apt-get upgrade -y && \
6
+ rm -rf /var/lib/apt/lists/*
7
+ USER node
8
+ RUN git clone https://github.com/mrfrank-ofc/SUBZERO-MD /home/node/SUBZERO-MD
9
+ WORKDIR /home/node/SUBZERO-MD
10
+ RUN chmod -R 777 /home/node/SUBZERO-MD/
11
+ RUN yarn install --network-concurrency 1
12
+ EXPOSE 7860
13
+ ENV NODE_ENV=production
14
+ CMD ["npm", "start"]