Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
development: update to node 20 LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
pheiduck committed Nov 25, 2023
1 parent 950b13a commit ccb7ca8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# There's an issue with node:20-alpine.
# Docker deployment is canceled after 25< minutes.

FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f AS build_node_modules
FROM docker.io/library/node:20-alpine@sha256:cb2301e2c5fe3165ba2616591efe53b4b6223849ac0871c138f56d5f7ae8be4b AS build_node_modules

RUN npm config set fund false &&\
npm config set update-notifier false
Expand All @@ -12,7 +12,7 @@ WORKDIR /app
RUN npm ci --legacy-peer-deps
# Copy build result to a new image.
# This saves a lot of disk space.
FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f
FROM docker.io/library/node:20-alpine@sha256:cb2301e2c5fe3165ba2616591efe53b4b6223849ac0871c138f56d5f7ae8be4b
COPY --from=build_node_modules /app /app

# Move node_modules one directory up, so during development
Expand Down
2 changes: 1 addition & 1 deletion src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
]
},
"engines": {
"node": "18"
"node": "20"
}
}

0 comments on commit ccb7ca8

Please sign in to comment.