Skip to content

Commit

Permalink
Update Dockerfile node version
Browse files Browse the repository at this point in the history
  • Loading branch information
RuiSiang committed Dec 16, 2021
1 parent bcb79bf commit d11d29b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM node:17 AS BUILD_IMAGE
FROM node:16 AS BUILD_IMAGE
RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin
WORKDIR /build
COPY . .
RUN npm ci && npm run build
RUN npm prune --production
RUN /usr/local/bin/node-prune

FROM node:17-alpine
FROM node:16-alpine
WORKDIR /usr/src/pow-shield
COPY --from=BUILD_IMAGE /build/dist .
COPY --from=BUILD_IMAGE /build/node_modules ./node_modules
CMD [ "node", "bin/server.js" ]
CMD [ "node", "bin/server.js" ]

0 comments on commit d11d29b

Please sign in to comment.