-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move from node 16 to 14 because of failing docker build (#237)
- Loading branch information
1 parent
669e98d
commit ecf43b0
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |