aws-iam-authenticator/Dockerfile

26 lines
821 B
Docker
Raw Permalink Normal View History

2024-07-17 21:28:39 +00:00
ARG DISTRO_VERSION="3.20"
2024-10-28 13:44:00 +00:00
ARG VERSION="0.6.27"
2023-12-13 20:35:57 +00:00
FROM alpine:${DISTRO_VERSION}
ARG DISTRO_VERSION
2023-12-13 20:52:26 +00:00
ARG VERSION
2023-12-13 20:35:57 +00:00
RUN adduser -D -u 10000 aws-iam-authenticator
RUN apk add --update ca-certificates
RUN echo "@kubezero https://cdn.zero-downtime.net/alpine/v${DISTRO_VERSION}/kubezero" >> "/etc/apk/repositories"
RUN wget -q -O /etc/apk/keys/stefan@zero-downtime.net-61bb6bfb.rsa.pub https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub
RUN apk -U --no-cache add \
2023-12-13 20:52:26 +00:00
aws-iam-authenticator@kubezero=~$VERSION
2023-12-13 20:35:57 +00:00
FROM scratch
COPY --from=0 /etc/passwd /etc/passwd
COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=0 /lib/ld-musl-*.so.1 /lib/
COPY --from=0 /usr/bin/aws-iam-authenticator /aws-iam-authenticator
USER aws-iam-authenticator
ENTRYPOINT ["/aws-iam-authenticator"]