Skip to content

Commit

Permalink
cni-metrics-helper minimal base image
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 committed Jan 23, 2023
1 parent 0a9960e commit d789bb5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/dockerfiles/Dockerfile.metrics
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d789bb5

Please sign in to comment.