diff --git a/scripts/dockerfiles/Dockerfile.metrics b/scripts/dockerfiles/Dockerfile.metrics index 1b8085556e..67182da9cc 100644 --- a/scripts/dockerfiles/Dockerfile.metrics +++ b/scripts/dockerfiles/Dockerfile.metrics @@ -6,17 +6,15 @@ WORKDIR /go/src/github.com/aws/amazon-vpc-cni-k8s ENV GO111MODULE=on ENV GOPROXY=direct -# Copy modules in before the rest of the source to only expire cache on module -# changes: +# Copy modules in before the rest of the source to only expire cache on module changes: COPY go.mod go.sum ./ RUN go mod download COPY . ./ RUN make build-metrics -FROM public.ecr.aws/amazonlinux/amazonlinux:2 -RUN yum update -y && \ - yum clean all +# Build from EKS minimal base + glibc +FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-glibc:latest.2 # Copy our bundled certs to the first place go will check: see # https://golang.org/src/pkg/crypto/x509/root_unix.go