-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (22 loc) · 841 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
25
26
27
28
29
############################################################
# Build stage
############################################################
FROM node:lts-alpine AS build
RUN mkdir parse-hipaa-dashboard
WORKDIR /parse-hipaa-dashboard
COPY . .
# Install without scripts
RUN npm ci --omit=dev --ignore-scripts
############################################################
# Release stage
############################################################
FROM node:lts-alpine AS release
RUN mkdir parse-hipaa-dashboard
WORKDIR /parse-hipaa-dashboard
# Copy build stage folders
COPY --from=build /parse-hipaa-dashboard/node_modules /parse-hipaa-dashboard/node_modules
COPY /src/index.js ./index.js
RUN mkdir lib
COPY /src/parse-dashboard-config.json ./lib/parse-dashboard-config.json
USER node
ENTRYPOINT ["node", "/parse-hipaa-dashboard/index.js"]