Skip to content

Commit

Permalink
add docker file and start command
Browse files Browse the repository at this point in the history
  • Loading branch information
Vova Stelmashchuk committed Aug 4, 2024
1 parent 725e934 commit 5e91a77
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:20
LABEL authors="vovastelmashchuk"

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

ENV NODE_ENV=production

CMD [ "npm", "start" ]

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "nodemon src/app.js",
"start": "node src/app.js",
"build:css": "tailwindcss -i ./src/styles.css -o ./src/public/styles.css --watch"
},
"keywords": [],
Expand Down

0 comments on commit 5e91a77

Please sign in to comment.