We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d086c7 commit 07559c6Copy full SHA for 07559c6
.dockerignore
@@ -0,0 +1,5 @@
1
+.vscode
2
+README.md
3
+LICENSE
4
+tests
5
+dist
Dockerfile
@@ -0,0 +1,18 @@
+FROM mhart/alpine-node:8.11.2 as build
+WORKDIR /usr/app
+COPY . .
+RUN npm install --only=production
+RUN mv node_modules prod_modules
6
+RUN npm install
7
+ENV NODE_ENV production
8
+RUN npm run build
9
+
10
+FROM mhart/alpine-node:base-8.11.2
11
12
13
+COPY --from=build /usr/app/prod_modules ./node_modules
14
+COPY --from=build /usr/app/dist ./dist
15
+COPY --from=build /usr/app/package.json ./package.json
16
+COPY --from=build /usr/app/src/style.min.css ./src/style.min.css
17
+EXPOSE 3007
18
+CMD node dist/server.js
0 commit comments