From c3746008331b5af9cf4c282ef49720340f06b1e6 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 20 Mar 2026 20:57:51 +0100 Subject: [PATCH] fix(pitch-deck): set proper ownership on public/ dir for standalone mode Screenshots were owned by root but Next.js standalone runs as nextjs user, causing image optimization to fail with 'not a valid image' error. Co-Authored-By: Claude Opus 4.6 --- pitch-deck/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pitch-deck/Dockerfile b/pitch-deck/Dockerfile index 20267ee..05b22e0 100644 --- a/pitch-deck/Dockerfile +++ b/pitch-deck/Dockerfile @@ -28,7 +28,7 @@ RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs # Copy built assets -COPY --from=builder /app/public ./public +COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static