content: ### Node Checker Image ###
  
  FROM debian-base AS node-checker
  
  RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
      --mount=type=cache,target=/var/lib/apt,sharing=locked \   
      apt-get update && apt-get install --no-install-recommends -y \
          libssl1.1 \
          ca-certificates \
          net-tools \
          tcpdump \
          iproute2 \
          netcat \
          libpq-dev
  
  COPY  --link --from=tools-builder /aptos/dist/aptos-node-checker /usr/local/bin/aptos-node-checker
  
  ENV RUST_LOG_FORMAT=json
  
  # add build info
  ARG BUILD_DATE
  ENV BUILD_DATE ${BUILD_DATE}
  ARG GIT_TAG
  ENV GIT_TAG ${GIT_TAG}
  ARG GIT_BRANCH
  ENV GIT_BRANCH ${GIT_BRANCH}
  ARG GIT_SHA
  ENV GIT_SHA ${GIT_SHA}