add dockerfile

This commit is contained in:
tezlm 2024-07-28 06:39:04 -07:00
parent af8480afb5
commit 8b45c51ac9
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA
2 changed files with 7 additions and 0 deletions

6
Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM node:22-alpine
WORKDIR /app
COPY . /app
RUN npm install
CMD npm run start
EXPOSE 3000

View file

@ -4,6 +4,7 @@
"description": "my server", "description": "my server",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",