Skip to content

Commit

Permalink
Merge pull request #352 from buildtool/pin_aws_auth_version
Browse files Browse the repository at this point in the history
chore: pin the aws-iam-authenticator version
  • Loading branch information
peter-svensson authored Dec 2, 2022
2 parents da3c04b + 9726d7f commit ca02bb0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,19 @@

FROM golang:1.19 as go-build

RUN go install sigs.k8s.io/aws-iam-authenticator/cmd/aws-iam-authenticator@latest
RUN go install sigs.k8s.io/aws-iam-authenticator/cmd/aws-iam-authenticator@v0.5.10

FROM debian:bullseye-20221114-slim

RUN apt-get update && \
apt-get install -y ca-certificates curl && \
apt-get install -y ca-certificates curl unzip && \
useradd -m -u 1001 vsts_VSTSContainer

RUN cd /tmp && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm -rf aws && rm awscliv2.zip

COPY build push deploy kubecmd /usr/local/bin/
COPY --from=go-build /go/bin/aws-iam-authenticator /usr/local/bin/

0 comments on commit ca02bb0

Please sign in to comment.