Skip to content

Commit

Permalink
Try to fix entrypoint
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Sachivka <juicy.igor@gmail.com>
  • Loading branch information
isachivka committed May 15, 2023
1 parent 7e6d897 commit 2546419
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,5 +9,5 @@ RUN npm run build

EXPOSE 3000

ENTRYPOINT npm run migrate && node dist/index.js
ENTRYPOINT ["npm", "run", "start"]

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"start": "npm run migrate && node dist/index.js",
"dev": "nodemon src/index.ts",
"dockerhub": "docker build -t isachivka/gpt --platform=linux/amd64 . && docker push isachivka/gpt",
"migrate": "sequelize-cli db:migrate"
Expand Down

0 comments on commit 2546419

Please sign in to comment.