diff --git a/Dockerfile b/Dockerfile index 6dbe4dad8..b6eb6e2bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -ARG image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2021-08-26-1630012071 +ARG image=public.ecr.aws/eks-distro-build-tooling/eks-distro-minimal-base-nonroot:2021-12-01-1638322424 FROM golang:1.16 AS builder WORKDIR /go/src/github.com/kubernetes-sigs/aws-iam-authenticator @@ -19,6 +19,9 @@ COPY . . RUN make bin RUN chown 65532 _output/bin/aws-iam-authenticator +FROM public.ecr.aws/eks-distro/kubernetes/go-runner:v0.9.0-eks-1-21-4 as go-runner + FROM $image +COPY --from=go-runner /usr/local/bin/go-runner /usr/local/bin/go-runner COPY --from=builder /go/src/github.com/kubernetes-sigs/aws-iam-authenticator/_output/bin/aws-iam-authenticator /aws-iam-authenticator ENTRYPOINT ["/aws-iam-authenticator"]