Skip to content

Commit 31c719a

Browse files
install AWS CLI v2 directly from AWS
1 parent 8810c62 commit 31c719a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile.base

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen \
1818
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ${GIT_CORE_PPA_KEY} \
1919
&& apt-get update \
2020
&& apt-get install -y --no-install-recommends \
21-
awscli \
2221
curl \
2322
tar \
2423
unzip \
@@ -46,7 +45,9 @@ RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen \
4645
&& ( apt-get install -y --no-install-recommends git || apt-get install -t stable -y --no-install-recommends git || apt-get install -y --no-install-recommends git=1:2.33.1-0ppa1~ubuntu18.04.1 git-man=1:2.33.1-0ppa1~ubuntu18.04.1 ) \
4746
&& ( [[ $(apt-cache search -n liblttng-ust0 | awk '{print $1}') == "liblttng-ust0" ]] && apt-get install -y --no-install-recommends liblttng-ust0 || : ) \
4847
&& ( [[ $(apt-cache search -n liblttng-ust1 | awk '{print $1}') == "liblttng-ust1" ]] && apt-get install -y --no-install-recommends liblttng-ust1 || : ) \
49-
&& pip3 install --no-cache-dir awscliv2 \
48+
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip" \
49+
&& unzip awscliv2.zip -d /tmp/ \
50+
&& /tmp/aws/install \
5051
# Determine the Distro name (Debian, Ubuntu, etc)
5152
&& distro=$(lsb_release -is | awk '{print tolower($0)}') \
5253
# Determine the Distro version (bullseye, xenial, etc)

0 commit comments

Comments
 (0)