diff --git a/Dockerfile b/Dockerfile index befc03c..63f4fd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,9 @@ COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/public ./public +# Ensure .next/cache is writable by the nextjs user +RUN mkdir -p .next/cache && chown -R nextjs:nodejs .next + USER nextjs EXPOSE 3000