diff --git a/Dockerfile b/Dockerfile index a6e7e61..d937c26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,21 +4,6 @@ ARG CLI_NAME=tutorials FROM cloudposse/geodesic:$VERSION-$OS -# Move AWS CLI v1 to aws1 and set up alternatives -RUN mv /usr/local/bin/aws /usr/local/bin/aws1 && \ - update-alternatives --install /usr/local/bin/aws aws /usr/local/bin/aws1 1 - -# Install AWS CLI 2 -# Get version from https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst -ARG AWS_CLI_VERSION=2.1.34 -RUN AWSTMPDIR=$(mktemp -d -t aws-inst-XXXXXXXXXX) && \ - curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VERSION}.zip" -o "$AWSTMPDIR/awscliv2.zip" && \ - cd $AWSTMPDIR && \ - unzip -qq awscliv2.zip && \ - ./aws/install -i /usr/share/aws/v2 -b /usr/share/aws/v2/bin && \ - update-alternatives --install /usr/local/bin/aws aws /usr/share/aws/v2/bin/aws 2 && \ - rm -rf $AWSTMPDIR - # Install ubuntu universe repo so we can install more helpful packages RUN apt-get install -y software-properties-common && \ add-apt-repository "deb http://archive.ubuntu.com/ubuntu bionic universe" && \