fix: entrypoint access right

This commit is contained in:
Luc SORIGNET
2025-02-16 14:36:06 +01:00
parent aae5d27d8c
commit a041ffaee7

View File

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