Skip to content

Instantly share code, notes, and snippets.

@saggie
Created June 8, 2021 12:02
Show Gist options
  • Save saggie/6a4a44c6d8bf2f0fc57e4ee51bad243a to your computer and use it in GitHub Desktop.
Save saggie/6a4a44c6d8bf2f0fc57e4ee51bad243a to your computer and use it in GitHub Desktop.
Install AWS CLI v2 in Dockerfile
FROM ubuntu:20.04
# Installing dependent libraries...
RUN apt-get update && \
apt-get install -y \
curl \
unzip
# Installing AWS CLI v2...
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm awscliv2.zip && \
rm -rf aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment