# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/pingcap-public/pingcap/alpine-glibc:alpine-3.14.3
WORKDIR /
COPY bin/cluster-prober cluster-prober
RUN apk update && apk add mysql-client curl && rm -rf /var/cache/apk/*
USER 65532:65532
ENTRYPOINT ["/cluster-prober"]
