Skip to content

Commit

Permalink
Update Node.js to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Dec 7, 2023
1 parent 34bdff2 commit b55a270
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .docker/Dockerfile.api
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY package.json package-lock.json /tmp/
RUN jq 'del(.version)' < /tmp/package.json > /app/package.json
RUN jq 'del(.packages."".version) | del(.version)' < /tmp/package-lock.json > /app/package-lock.json

FROM node:18-alpine AS build
FROM node:20-alpine AS build
EXPOSE 3000
WORKDIR /app
RUN apk --no-cache add make build-base
Expand All @@ -20,7 +20,7 @@ RUN cd api \
&& touch dist/.env
RUN npm prune --workspaces --omit=dev

FROM node:18-alpine
FROM node:20-alpine
EXPOSE 3000
ENV NODE_ENV production
WORKDIR /app/api
Expand Down
4 changes: 2 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"private": true,
"engines": {
"node": "18"
"node": "20"
},
"scripts": {
"build": "tsc",
Expand Down Expand Up @@ -34,7 +34,7 @@
"@types/bcrypt": "^5.0.0",
"@types/luxon": "^3.3.2",
"@types/module-alias": "^2.0.2",
"@types/node": "^18.18.5",
"@types/node": "^20.10.4",
"husky": "^8.0.3",
"jest": "29.7.0",
"lint-staged": "^13.3.0",
Expand Down
26 changes: 10 additions & 16 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "template",
"version": "0.0.0",
"engines": {
"node": "18"
"node": "20"
},
"private": true,
"workspaces": [
Expand Down

0 comments on commit b55a270

Please # to comment.