Spaces:
Running
Running
mrfrank-ofc
commited on
Update Dockerfile
Browse files- 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 |
-
|
16 |
-
|
17 |
-
|
18 |
-
WORKDIR /usr/src/app
|
19 |
-
|
20 |
-
Copy package.json and install dependencies
|
21 |
-
COPY package.json .
|
22 |
|
23 |
-
|
24 |
-
RUN npm install && npm install qrcode-terminal
|
25 |
|
26 |
-
|
27 |
-
EXPOSE 5000
|
28 |
|
29 |
-
|
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"]
|
|