diff --git a/Dockerfile b/Dockerfile index d0e4cc7..d93f686 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,10 +31,10 @@ RUN npx prisma generate # Copy source code (this invalidates cache when code changes) COPY . . -# Build the application +# Build the application (mount cache for faster rebuilds) ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production -RUN npm run build +RUN --mount=type=cache,target=/app/.next/cache npm run build # Verify standalone output was created and show structure for debugging RUN if [ ! -d .next/standalone ]; then \