fix: user switch for permissions to set chmod on entrypoint script

This commit is contained in:
theoleuthardt 2025-02-28 12:04:15 +01:00
parent 2dad778d0e
commit 3b17ba8aa3

View file

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