fix directory ownership
Deploy Next.js site to Pages / build (push) Has been cancelled
Deploy Next.js site to Pages / search-tests (push) Has been cancelled
Deploy Next.js site to Pages / deploy (push) Has been cancelled

This commit is contained in:
Gerhard Scheikl
2026-04-03 15:45:06 +02:00
parent 30f9d15b02
commit 37b75a5d98
+2 -1
View File
@@ -57,8 +57,9 @@ COPY --from=builder /app/.next/static/pagefind ./.next/static/pagefind
# Create cache directory with correct permissions # Create cache directory with correct permissions
# IsomorphicBridge needs write access to .git and content for commits # IsomorphicBridge needs write access to .git and content for commits
# TinaCMS media manager writes uploads to public/
RUN mkdir -p .next/cache && \ RUN mkdir -p .next/cache && \
chown -R nextjs:nodejs .next/cache .git content tina chown -R nextjs:nodejs .next/cache .git content tina public
USER nextjs USER nextjs