-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 700 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
#Latest version of node tested on.
FROM node:12-alpine AS dist
RUN USER root
# Tini is recommended for Node apps https://github.com/krallin/tini
RUN apk add --no-cache tini
ENTRYPOINT ["/sbin/tini", "--"]
WORKDIR /app
# Only run npm install if these files change.
COPY package*.json ./
# Install dependencies
RUN npm ci
# Add the rest of the source
COPY . .
# run webpack
RUN npm run dist
# MS : Number of milliseconds between polling requests. Default is 1000.
# CTX_ROOT : Context root of the application. Default is /
ENV MS=1000 CTX_ROOT=/
EXPOSE 8080
HEALTHCHECK CMD node /app/healthcheck.js || exit 1
CMD ["node","server.js"]
# This is Updated dockerfile
# This is Imp session for git