mrfrank-ofc commited on
Commit
fab43f1
·
verified ·
1 Parent(s): 2503f6a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -1,16 +1,14 @@
1
  FROM node:lts-buster
2
-
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
-
8
- RUN git clone https://github.com/mrfrank-ofc/SUBZERO-MD plugins
9
-
10
- WORKDIR /plugins
11
-
12
- RUN yarn install --production
13
-
14
- RUN yarn global add pm2
15
-
16
  CMD ["npm", "start"]
 
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/xeonser/SUBZERO-MD /home/node/index.js
9
+ WORKDIR /home/node/index.js
10
+ RUN chmod -R 777 /home/node/index.js/
11
+ RUN yarn install --network-concurrency 1
12
+ EXPOSE 7860
13
+ ENV NODE_ENV=production
 
 
14
  CMD ["npm", "start"]