From 07039cc4088829c8fd3733c5f3369e8844b02787 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 1 May 2026 15:51:50 +0200 Subject: [PATCH] fix(pitch-deck): pre-create /data/dataroom owned by nextjs in Dockerfile Docker volume inherits directory ownership from the image on first mount. Without this, the volume mounts as root and the nextjs (uid 1001) process gets EACCES when trying to write dataroom uploads. Co-Authored-By: Claude Sonnet 4.6 --- pitch-deck/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pitch-deck/Dockerfile b/pitch-deck/Dockerfile index 3c986ae..903b834 100644 --- a/pitch-deck/Dockerfile +++ b/pitch-deck/Dockerfile @@ -31,6 +31,10 @@ ENV NODE_ENV=production RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs +# Create dataroom storage directory owned by nextjs so mounted volumes +# inherit the correct ownership on first initialisation +RUN mkdir -p /data/dataroom && chown -R nextjs:nodejs /data/dataroom + # Copy built assets COPY --from=builder --chown=nextjs:nodejs /app/public ./public COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./