Skip to content

Commit 24da611

Browse files
John PapaJohn Papa
authored andcommitted
docker - node 12
1 parent 4b61478 commit 24da611

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/dockerfile.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"RUN ng build --prod",
1313
"",
1414
"# Node server",
15-
"FROM ${2:node:8.11-alpine} as node-server",
15+
"FROM ${2:node:12-alpine} as node-server",
1616
"WORKDIR /usr/src/app",
1717
"COPY [\"package.json\", \"npm-shrinkwrap.json*\", \"./\"]",
1818
"RUN npm install --production --silent && mv node_modules ../",
1919
"COPY ${3:server.js} .",
2020
"COPY ${4:/server} /usr/src/app/server",
2121
"",
2222
"# Final image",
23-
"FROM ${2:node:8.11-alpine}",
23+
"FROM ${2:node:12-alpine}",
2424
"WORKDIR /usr/src/app",
2525
"COPY --from=node-server /usr/src /usr/src",
2626
"COPY --from=client-app /usr/src/app/dist ./",

0 commit comments

Comments
 (0)