1 # DESCRIPTION: aws-cli container
2 # AUTHOR: https://github.com/r1w1s1
4 # Build aws-cli based on Ubuntu 20.04
7 # # Download Dockerfile
8 # wget https://raw.githubusercontent.com/r1w1s1/dockerfiles/master/aws-cli/Dockerfile
10 # # Build aws-cli image
11 # docker build -t aws-cli .
14 # docker run -it aws-cli
17 FROM ubuntu:20.04 as installer
20 && apt-get install -y apt-utils curl zip \
21 && curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
22 && unzip awscliv2.zip \
23 && ./aws/install --bin-dir /aws-cli-bin/
27 COPY --from=installer /usr/local/aws-cli/ /usr/local/aws-cli/
28 COPY --from=installer /aws-cli-bin/ /usr/local/bin/
31 ENTRYPOINT [ "/usr/local/bin/aws" ]