-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (30 loc) · 783 Bytes
/
Dockerfile
File metadata and controls
36 lines (30 loc) · 783 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
FROM keymetrics/pm2:18-alpine
WORKDIR /app
ENV NODE_ENV=$NODE_ENV
ENV APP_PORT=$APP_PORT
ENV APP_NAME=$APP_NAME
ENV MONGO_USER=$MONGO_USER
ENV MONGO_PW=$MONGO_PW
ENV MONGO_PORT=$MONGO_PORT
ENV MONGO_DBNAME=$MONGO_DBNAME
ENV MONGO_HOST=$MONGO_HOST
ENV BYCRYPT_SALT=$BYCRYPT_SALT
ENV JWT_SECRET_KEY=$JWT_SECRET_KEY
ENV JWT_EXPIRED=$JWT_EXPIRED
ENV RATE_LIMIT_MAX=$RATE_LIMIT_MAX
ENV RATE_LIMIT_MINUTE=$RATE_LIMIT_MINUTE
ENV GRPC_PORT=$GRPC_PORT
COPY dist /app
COPY package.json /app
COPY config/ecosystem.config.json /app/config
COPY scripts/start.sh /app
COPY scripts/start.dev.sh /app
COPY scripts/wait-for-it.sh /app
RUN chmod +x wait-for-it.sh
RUN chmod +x start.dev.sh
RUN chmod +x start.sh
RUN npm install
RUN apk add --no-cache \
curl \
bash \
ca-certificates