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.

reorder script dependency order

Francis Cao75a9041fad85
diff --git a/Dockerfile b/Dockerfile
index 90fb0c867..bd8b85911 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -41,12 +41,6 @@ RUN adduser --system --uid 1001 nextjs
RUN set -x \
&& apk add --no-cache curl
-# Script dependencies
-RUN npm install --no-save npm-run-all dotenv chalk semver \
- prisma@${PRISMA_VERSION} \
- @prisma/client@${PRISMA_VERSION} \
- @prisma/adapter-pg@${PRISMA_VERSION}
-
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/prisma.config.ts ./prisma.config.ts
@@ -58,6 +52,12 @@ COPY --from=builder /app/generated ./generated
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
+# Script dependencies
+RUN npm install --no-save npm-run-all dotenv chalk semver \
+ prisma@${PRISMA_VERSION} \
+ @prisma/client@${PRISMA_VERSION} \
+ @prisma/adapter-pg@${PRISMA_VERSION}
+
USER nextjs
EXPOSE 3000