Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

run migrations on docker build

Carl-Gerhard Lindesvärd8c75b12c4036
diff --git a/apps/backend/Dockerfile b/apps/backend/Dockerfile
index 4f2504202..8840af2dd 100644
--- a/apps/backend/Dockerfile
+++ b/apps/backend/Dockerfile
@@ -21,6 +21,7 @@ RUN bun install
COPY . .
WORKDIR /app/apps/backend
RUN bunx prisma generate
+RUN bunx prisma migrate deploy
WORKDIR /app/apps/backend
EXPOSE ${PORT}
CMD ["bun", "start"]