fix: use debug print in dockerfile instead of shell script

This commit is contained in:
theoleuthardt 2025-02-28 14:18:42 +01:00
parent 56a023e075
commit ab8ebef392
2 changed files with 2 additions and 9 deletions

View file

@ -55,15 +55,11 @@ 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 root
USER nextjs
EXPOSE 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/entrypoint.sh"]
CMD echo "NEXT_PUBLIC_BACKEND_URL = $NEXT_PUBLIC_BACKEND_URL" && node server.js

View file

@ -1,3 +0,0 @@
#!/bin/bash
echo "NEXT_PUBLIC_BACKEND_URL: $NEXT_PUBLIC_BACKEND_URL"
exec node server.js