cni-metrics-helper minimal base image
@@ -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
