refactor(docker): remove docker-entrypoint.sh and update Dockerfile to use CMD for server execution

This commit is contained in:
Anish Sarkar 2026-06-16 22:01:23 +05:30
parent 55c2e5c0d8
commit 4ed6343b91
2 changed files with 1 additions and 7 deletions

View file

@ -63,8 +63,6 @@ COPY --from=builder /app/public ./public
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone/app/ ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --chown=nextjs:nodejs --chmod=755 docker-entrypoint.sh ./docker-entrypoint.sh
USER nextjs
EXPOSE 3000
@ -74,4 +72,4 @@ ENV PORT=3000
# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/config/next-config-js/output
ENV HOSTNAME="0.0.0.0"
ENTRYPOINT ["/bin/sh", "./docker-entrypoint.sh"]
CMD ["node", "server.js"]

View file

@ -1,4 +0,0 @@
#!/bin/sh
set -e
exec node server.js