Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal base image for cni-metrics-helper minimal base image #2189

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
jdn5126 marked this conversation as resolved.
Show resolved Hide resolved

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
jdn5126 marked this conversation as resolved.
Show resolved Hide resolved

# Copy our bundled certs to the first place go will check: see
# https://golang.org/src/pkg/crypto/x509/root_unix.go
Expand Down