feat(docker): add Dockerfile
This commit is contained in:
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
@@ -0,0 +1,7 @@
|
||||
FROM node:slim
|
||||
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN npm i
|
||||
|
||||
CMD ["npm", "start"]
|
||||
+2
-2
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user