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": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_VERSION=19 npm_config_prefix= $HOME/.nvm/nvm-exec .",
|
"start": "node .",
|
||||||
"dev": "NODE_VERSION=19 npm_config_prefix= $HOME/.nvm/nvm-exec ./node_modules/nodemon/bin/nodemon.js .",
|
"dev": "nodemon .",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user