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": {