update to use micro image
[dockerfiles.git] / aws-cli / Dockerfile
bloba98e30d6e38998d7edd34196c0d0d87826ce87c6
1 # DESCRIPTION:   aws-cli container
2 # AUTHOR:        https://github.com/r1w1s1
3 # COMMENTS:
4 #    Build aws-cli based on Ubuntu 20.04
6 # USAGE:
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 .
13 #    # Run the image
14 #    docker run -it aws-cli
17 FROM ubuntu:20.04 as installer
19 RUN apt-get update \
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/
25 FROM ubuntu:20.04
27 COPY --from=installer /usr/local/aws-cli/ /usr/local/aws-cli/
28 COPY --from=installer /aws-cli-bin/ /usr/local/bin/
30 WORKDIR /aws
31 ENTRYPOINT [ "/usr/local/bin/aws" ]