diff --git a/Dockerfile b/Dockerfile index b31ccfc..282521e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,12 +54,14 @@ COPY --from=builder /app/public ./public # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing -COPY --from=builder --chown=nextjs:nodejs /app/entrypoint.sh ./entrypoint.sh COPY --from=builder --chown=nextjs:nodejs /app/next.config.js ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static COPY --from=builder --chown=nextjs:nodejs /app/public ./.next/static +COPY --from=builder --chown=nextjs:nodejs /app/entrypoint.sh ./entrypoint.sh +RUN chmod 777 /app/entrypoint.sh + RUN chown -R nextjs:nodejs /app USER nextjs