From 828f0a73d3f678c3ee013109e6ae131358ed94fa Mon Sep 17 00:00:00 2001 From: Eddie Torres Date: Wed, 15 Jun 2022 20:44:38 +0000 Subject: [PATCH] Change base image from AL2 to EKS minimal Signed-off-by: Eddie Torres --- Dockerfile | 5 +---- Makefile | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6098b5e706..2a64810936 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,10 +22,7 @@ ARG TARGETOS ARG TARGETARCH RUN OS=$TARGETOS ARCH=$TARGETARCH make $TARGETOS/$TARGETARCH -FROM amazonlinux:2 AS linux-amazon -RUN yum update -y && \ - yum install ca-certificates e2fsprogs xfsprogs util-linux -y && \ - yum clean all +FROM public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-csi-ebs:latest.2 AS linux-amazon COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-ebs-csi-driver/bin/aws-ebs-csi-driver /bin/aws-ebs-csi-driver ENTRYPOINT ["/bin/aws-ebs-csi-driver"] diff --git a/Makefile b/Makefile index d5f11e4e72..f58674f020 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,6 @@ sub-image-%: image: .image-$(TAG)-$(OS)-$(ARCH)-$(OSVERSION) .image-$(TAG)-$(OS)-$(ARCH)-$(OSVERSION): docker buildx build \ - --no-cache-filter=linux-amazon \ --platform=$(OS)/$(ARCH) \ --progress=plain \ --target=$(OS)-$(OSVERSION) \