Skip to content

Commit

Permalink
fix: move from node 16 to 14 because of failing docker build (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
victormartingarcia authored Aug 18, 2022
1 parent 669e98d commit ecf43b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:16 as builder
FROM node:14 as builder

COPY ./ /app
WORKDIR /app

RUN npm install && npm run package

FROM node:16-alpine
FROM node:14-alpine

# We need to copy entire node modules as some dependencies (@npmcli/run-script) cannot be packaged
# We need to copy entire node modules as some dependencies (@npmcli/run-script) cannot be packaged
# and need to be used by dist as external dependency
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist

ENTRYPOINT [ "node", "/dist/index.js" ]
ENTRYPOINT [ "node", "/dist/index.js" ]

0 comments on commit ecf43b0

Please sign in to comment.