Skip to content

Commit

Permalink
Run migration on build
Browse files Browse the repository at this point in the history
  • Loading branch information
briancao committed Aug 23, 2022
1 parent 549ef02 commit 3d7b3aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ENV BASE_PATH $BASE_PATH

ENV NEXT_TELEMETRY_DISABLED 1

RUN yarn build
RUN yarn build-docker

# Production image, copy all the files and run next
FROM node:16-alpine AS runner
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
},
"scripts": {
"dev": "next dev",
"build": "npm-run-all build-tracker build-geo build-db build-app",
"start": "npm-run-all check-db start-next",
"build": "npm-run-all build-db check-db build-tracker build-geo build-app",
"start": "npm-run-all start-next",
"build-docker": "npm-run-all build-db build-tracker build-geo build-app",
"start-docker": "npm-run-all check-db update-tracker start-server",
"start-env": "node scripts/start-env.js",
"start-server": "node server.js",
Expand Down

0 comments on commit 3d7b3aa

Please sign in to comment.