Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Run migration on build

Brian Cao3d7b3aa5886f
diff --git a/Dockerfile b/Dockerfile
index 48f3df322..eb7ebf1a5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/package.json b/package.json
index 97d26c7bf..cbfe94daf 100644
--- a/package.json
+++ b/package.json
@@ -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",