diff --git a/Dockerfile b/Dockerfile index 086a567b..8e58f37e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,6 +51,5 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static # Uncomment the following line to disable telemetry at run time ENV NEXT_TELEMETRY_DISABLED 1 -ENTRYPOINT ["/app/docker-entrypoint.sh"] CMD ["node", "server.js"] STOPSIGNAL SIGTERM diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh deleted file mode 100755 index f1fc77dd..00000000 --- a/docker-entrypoint.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env sh -set -Ex - -# This method has been inspired by the comment here: -# https://github.com/vercel/next.js/discussions/17641#discussioncomment-339555 -function apply_path { - find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_MEMPOOL_API#$MEMPOOL_API#g" - find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_API_URL#$API_URL#g" - find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_NETWORK#$NETWORK#g" - find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_DISPLAY_TESTING_MESSAGES#$DISPLAY_TESTING_MESSAGES#g" -} - -apply_path -echo "Starting Nextjs" -exec "$@"