feat(docker): add Dockerfile

This commit is contained in:
2023-07-12 17:00:29 +02:00
parent dedce2a891
commit 4ed86f2e88
3 changed files with 10 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
node_modules
+7
View File
@@ -0,0 +1,7 @@
FROM node:slim
COPY . /app
WORKDIR /app
RUN npm i
CMD ["npm", "start"]
+2 -2
View File
@@ -5,8 +5,8 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "NODE_VERSION=19 npm_config_prefix= $HOME/.nvm/nvm-exec .",
"dev": "NODE_VERSION=19 npm_config_prefix= $HOME/.nvm/nvm-exec ./node_modules/nodemon/bin/nodemon.js .",
"start": "node .",
"dev": "nodemon .",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {