generated from jfadev/jfa-whatsapp-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (23 loc) · 768 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM node:lts-alpine
WORKDIR /wchatbot
RUN apk update && apk add --no-cache nmap && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk update && \
apk add --no-cache \
chromium \
harfbuzz \
"freetype>2.8" \
ttf-freefont \
nss
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
RUN npm install pm2 -g
COPY . /wchatbot
RUN npm install
EXPOSE 3000
CMD pm2 start src/main.js \
--node-args='--es-module-specifier-resolution=node' \
--name wchatbot && \
pm2-runtime start src/httpCtrl.js \
--node-args='--es-module-specifier-resolution=node' \
--name wchatbotcp