Skip to content

Commit

Permalink
Use eks-distro go-runner as the base image (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernest Wong authored May 18, 2023
1 parent 9481c6c commit 4580826
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ COPY . ./
ARG TARGETOS TARGETARCH
RUN GOPROXY=direct CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /webhook -v -a -ldflags="-buildid='' -w -s" .

FROM scratch
COPY ATTRIBUTIONS.txt /ATTRIBUTIONS.txt
FROM --platform=$TARGETPLATFORM public.ecr.aws/eks-distro/kubernetes/go-runner:v0.13.0-eks-1-23-latest
COPY --from=builder /webhook /webhook
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
EXPOSE 443
VOLUME /etc/webhook
ENTRYPOINT ["/webhook"]
CMD ["--logtostderr"]
ENTRYPOINT ["/go-runner"]
CMD ["/webhook"]

0 comments on commit 4580826

Please sign in to comment.