fix: resolve EACCES permission issue and hydration error #418

This commit is contained in:
Michael committed 2026-02-21 12:54:39 +01:00
1 parent 0026e3134d
commit 4f4a0dbd62
4 files changed
+45 -13

No files matched your search

+6 -3
View File
@@ -37,15 +37,18 @@ RUN adduser --system --uid 1001 nextjs
COPY --from=builder /app/public ./public
# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next
# Set the correct permission for prerender cache and data storage
RUN mkdir .next data
RUN chown nextjs:nodejs .next data
# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# Grant write access to /app for settings persistence
RUN chown -R nextjs:nodejs /app
USER nextjs
EXPOSE 5643