Skip to content

Commit

Permalink
Merge pull request #1 from makenew/fix-docker-args
Browse files Browse the repository at this point in the history
Use docker ENTRYPOINT over CMD
  • Loading branch information
razor-x authored Jun 27, 2024
2 parents e978ac0 + 4e78de6 commit d283ad8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ ENV NODE_ENV=production \

EXPOSE 8080

ENTRYPOINT ["node"]

CMD ["server.js"]
ENTRYPOINT ["node", "./server.js"]

USER node
2 changes: 1 addition & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"rootDir": "./src",
"outDir": "./"
},
"files": ["src/index.ts"],
"files": ["src/index.ts", "src/server.ts"],
"include": ["src/**/*"],
"exclude": ["**/*.spec.ts"]
}

0 comments on commit d283ad8

Please sign in to comment.