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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -20
Dockerfile CHANGED
@@ -1,30 +1,16 @@
1
-
2
  FROM node:lts-buster
3
 
4
-
5
  RUN apt-get update && \
6
- apt-get install -y \
7
- git \
8
- ffmpeg \
9
- imagemagick \
10
- webp && \
11
  apt-get upgrade -y && \
12
  rm -rf /var/lib/apt/lists/*
13
 
 
14
 
15
- RUN git clone https://github.com/mrfrank-ofc/SUBZERO-MD.git /usr/src/app
16
-
17
-
18
- WORKDIR /usr/src/app
19
-
20
- Copy package.json and install dependencies
21
- COPY package.json .
22
 
23
- Install npm packages and qrcode-terminal
24
- RUN npm install && npm install qrcode-terminal
25
 
26
- Expose the port the app will run on
27
- EXPOSE 5000
28
 
29
- Start the bot
30
- CMD ["node", "index.js"]
 
 
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"]