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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Upgrade pnpm and verify Prisma engines are installed during build
Mike Cao3447438c4905
diff --git a/Dockerfile b/Dockerfileindex 4e5c2f25f..79e670fcc 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,5 +1,5 @@ARG NODE_IMAGE_VERSION="22-alpine"-ARG PNPM_VERSION="10.15.1"+ARG PNPM_VERSION="11.21.0"# Keep in sync with the prisma/@prisma/* versions in package.jsonARG PRISMA_VERSION="7.9.1"@@ -64,6 +64,13 @@ RUN pnpm add npm-run-all dotenv chalk semver \@prisma/client@${PRISMA_VERSION} \@prisma/adapter-pg@${PRISMA_VERSION}+# Assert the @prisma/engines postinstall actually downloaded the engine+# binaries. If pnpm blocked the build script (e.g. allowBuilds not honored by+# the installed pnpm version), prisma would try to download engines at runtime+# as the non-root user and fail with a permissions error.+RUN ls node_modules/.pnpm/@prisma+engines@${PRISMA_VERSION}/node_modules/@prisma/engines/*engine* \+ || (echo "ERROR: Prisma engine binaries missing - @prisma/engines postinstall was blocked" && exit 1)+COPY --from=builder --chown=nextjs:nodejs /app/public ./publicCOPY --from=builder /app/prisma ./prismaCOPY --from=builder /app/prisma.config.ts ./prisma.config.ts