FROM argoproj/argocd:v2.0.3
USER root
RUN apt-get update
RUN apt install sudo -y
RUN apt install curl -y
RUN apt install unzip -y
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
RUN curl -o aws-iam-authenticator https://amazon-eks.s3.us-west-2.amazonaws.com/1.19.6/2021-01-05/bin/linux/amd64/aws-iam-authenticator
RUN chmod +x aws-iam-authenticator
RUN mv aws-iam-authenticator /usr/local/sbin/
USER argocd
ENV AWS_PROFILE=xxxx #์ฌ์ฉํ๋ ํ๋กํ์ผ๋ช