diff --git a/Dockerfile b/Dockerfile index 5253306..ff348b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM node:18 AS build +FROM node:20 AS build WORKDIR /src COPY package*.json ./ RUN npm pkg set scripts.prepare='true' && npm install COPY . . RUN npm run build -FROM node:18 +FROM node:20 WORKDIR /app COPY package*.json ./ RUN npm pkg set scripts.prepare='true' && npm ci --only=production diff --git a/package-lock.json b/package-lock.json index ef29436..c591289 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "@types/express-fileupload": "1.4.1", "@types/jest": "29.5.1", "@types/jsonwebtoken": "9.0.5", - "@types/node": "18.16.4", + "@types/node": "20.10.5", "@types/supertest": "6.0.2", "@types/validator": "13.7.15", "@typescript-eslint/eslint-plugin": "5.62.0", @@ -3657,9 +3657,12 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "18.16.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.4.tgz", - "integrity": "sha512-LUhvPmAKAbgm+p/K11IWszLZVoZDlMF4NRmqbhEzDz/CnCuehPkZXwZbBCKGJsgjnuVejotBwM7B3Scrq4EqDw==" + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.1", @@ -13989,6 +13992,11 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/unique-filename": { "version": "1.1.1", "dev": true, diff --git a/package.json b/package.json index de72d7c..0c26808 100644 --- a/package.json +++ b/package.json @@ -93,7 +93,7 @@ "@types/express-fileupload": "1.4.1", "@types/jest": "29.5.1", "@types/jsonwebtoken": "9.0.5", - "@types/node": "18.16.4", + "@types/node": "20.10.5", "@types/supertest": "6.0.2", "@types/validator": "13.7.15", "@typescript-eslint/eslint-plugin": "5.62.0",