diff --git a/.node-version b/.node-version index 3c032078..cecb9362 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -18 +20.15 diff --git a/Dockerfile b/Dockerfile index 22430e54..242ee3c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] diff --git a/jsconfig.json b/jsconfig.json index 9171aa49..cf90cfa8 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -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": []