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"]