Skip to content

Commit

Permalink
fix(docker): Node as first process
Browse files Browse the repository at this point in the history
To fix docker shutdown sending SIGTERM to nodejs (as first process)
  • Loading branch information
cicoub13 committed Dec 4, 2023
1 parent bfbf817 commit f6526fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ ENV SERVER_PORT 80
# Export listening port
EXPOSE 80

CMD ["npm" ,"run", "start:prod"]
CMD ["cross-env", "NODE_ENV=production", "node", "index.js"]
2 changes: 1 addition & 1 deletion docker/Dockerfile.buildx
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ ENV SERVER_PORT 80
# Export listening port
EXPOSE 80

CMD ["npm" ,"run", "start:prod"]
CMD ["cross-env", "NODE_ENV=production", "node", "index.js"]

0 comments on commit f6526fe

Please sign in to comment.