From 3b17ba8aa36ae032503347d97798f56628ebf351 Mon Sep 17 00:00:00 2001 From: theoleuthardt Date: Fri, 28 Feb 2025 12:04:15 +0100 Subject: [PATCH] fix: user switch for permissions to set chmod on entrypoint script --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index f2affb9..73ce712 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -55,7 +55,7 @@ RUN adduser --system --uid 1001 nextjs COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -USER nextjs +USER root EXPOSE 3000 @@ -63,6 +63,7 @@ ENV PORT=3000 ENV HOSTNAME="0.0.0.0" COPY entrypoint.sh /entrypoint.sh + RUN chmod +x /entrypoint.sh CMD ["/entrypoint.sh"] \ No newline at end of file