Skip to content

Commit

Permalink
fix: dockerfile start
Browse files Browse the repository at this point in the history
  • Loading branch information
carcruz committed Jun 30, 2023
1 parent 5489075 commit 7d020be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ RUN npm install
COPY . .

EXPOSE 8080
CMD [ "node", "app.js" ]
CMD [ "npm", "start" ]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"start": "NODE_ENV=development node app.js",
"start": "NODE_ENV=production node app.js",
"start:prod": "NODE_ENV=production node app.js",
"dev": "NODE_ENV=development nodemon app.js"
},
Expand Down

0 comments on commit 7d020be

Please sign in to comment.