From 6ecce21a17f9a1f829ae10d562924730aa2138f7 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 25 Apr 2023 11:49:09 +0200 Subject: [PATCH] refs #5473 actualizado node a la version 18 --- Dockerfile | 7 +++++-- npm-config.npmrc | 1 + package.json | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 npm-config.npmrc diff --git a/Dockerfile b/Dockerfile index 01298dd..e9c4ad5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ RUN npm install COPY db db COPY src src COPY util util -COPY config.yml ./ -COPY server.js ./ +COPY \ + server.js \ + config.yml \ + npm-config.npmrc \ + ./ CMD ["node", "server.js"] \ No newline at end of file diff --git a/npm-config.npmrc b/npm-config.npmrc new file mode 100644 index 0000000..4fd0219 --- /dev/null +++ b/npm-config.npmrc @@ -0,0 +1 @@ +engine-strict=true \ No newline at end of file diff --git a/package.json b/package.json index f7c88a8..e5407a3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ "scripts": { "start": "nodemon ./server.js" }, + "engines": { + "node": ">=18", + "npm": ">=8" + }, "keywords": [], "license": "GPL-3.0", "dependencies": {