Skip to content

Commit

Permalink
chore: update node.js to v20
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfsousa committed Jun 29, 2024
1 parent a64d14b commit 2d38f6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20.15
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:18 AS base-dev
FROM node:20.15 AS base-dev
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .

FROM node:18 AS base-prod
FROM node:20.15 AS base-prod
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
Expand All @@ -13,7 +13,7 @@ COPY . .
FROM base-dev AS development
CMD ["node", "-r", "./src/lib/tracing.cjs", "--watch", "bin/www.js"]

FROM gcr.io/distroless/nodejs:18 AS production
FROM gcr.io/distroless/nodejs20-debian12:20.15 AS production
WORKDIR /app
COPY --from=base-prod /app /app
CMD ["bin/www.js"]
18 changes: 2 additions & 16 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
{
"include": ["src/**/*", "test/**/*"],
"compilerOptions": {
"target": "ES2022",
"target": "ESNext",
"module": "NodeNext",
"checkJs": true,
"esModuleInterop": false,
"moduleResolution": "NodeNext",
"baseUrl": ".",
"paths": {
"#config": ["./src/config.js"],
"#controllers/*": ["./src/controllers/*.controller.js"],
"#enums/*": ["./src/enums/*.enum.js"],
"#errors/*": ["./src/errors/*.error.js"],
"#lib/*": ["./src/lib/*.js"],
"#middlewares/*": ["./src/middlewares/*.middleware.js"],
"#models/*": ["./src/models/*.model.js"],
"#routes/*": ["./src/routes/*.route.js"],
"#services/*": ["./src/services/*.service.js"],
"#validations/*": ["./src/validations/*.validation.js"]
}
"checkJs": true
},
"typeAcquisition": {
"exclude": []
Expand Down

0 comments on commit 2d38f6b

Please sign in to comment.