From a041ffaee75b74e0d559fb14bc79fbcfae98da14 Mon Sep 17 00:00:00 2001 From: Luc SORIGNET Date: Sun, 16 Feb 2025 14:36:06 +0100 Subject: [PATCH] fix: entrypoint access right --- Front-End/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Front-End/Dockerfile b/Front-End/Dockerfile index b45ca09..f82003c 100644 --- a/Front-End/Dockerfile +++ b/Front-End/Dockerfile @@ -30,6 +30,11 @@ COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static COPY --from=builder /app/messages ./messages COPY docker/entrypoint.sh /app/entrypoint.sh +RUN chmod +x /app/entrypoint.sh +RUN addgroup --system --gid 1001 nodejs +RUN adduser --system --uid 1001 nextjs +USER nextjs +ENV HOSTNAME="0.0.0.0" EXPOSE 3000 ENTRYPOINT ["/app/entrypoint.sh"]