-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
41 lines (32 loc) · 848 Bytes
/
Dockerfile
File metadata and controls
41 lines (32 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM arm64v8/node:alpine
LABEL maintainer="Alfredo Foltran <alfoltran@gmail.com>"
# https://github.com/npm/uid-number/issues/3
RUN npm config set unsafe-perm true
# Install pm2
RUN npm install pm2@3.3.1 -g
# Setting local for bot
WORKDIR /opt/bot
# Bundle APP files
COPY commands commands/
COPY events events/
COPY modules modules/
COPY scripts scripts/
COPY config.js .
COPY ecosystem.config.js .
COPY package.json .
COPY package-lock.json .
COPY vobys.js .
# Install app dependencies
ENV NPM_CONFIG_LOGLEVEL warn
RUN apk add --no-cache --virtual .gyp \
python \
make \
g++ \
&& npm install --production \
&& apk del .gyp
# Expose the listening port of your app
EXPOSE 8000
VOLUME /opt/bot/scripts
# Show current folder structure in logs
RUN ls -al -R
CMD [ "pm2-runtime", "start", "ecosystem.config.js" ]