From 074f2e7e167d5231741187918a8e9d2d208bdac9 Mon Sep 17 00:00:00 2001 From: "Ernesto R. C. Pereda" Date: Sat, 29 Aug 2020 12:43:49 -0400 Subject: [PATCH] Install version 2 of awscli --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 00a12b4..4d380f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,15 @@ FROM ubuntu:18.04 -RUN apt-get update && apt-get install -y --no-install-recommends curl cron awscli +RUN apt-get update && apt-get install -y --no-install-recommends curl cron ca-certificates unzip RUN rm -rf /var/lib/apt/lists/* +# Install awscliv2 https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html +RUN curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +RUN unzip -q awscliv2.zip +RUN ./aws/install -i /usr/bin -b /usr/bin +RUN rm -rf ./aws awscliv2.zip +RUN aws --version + # https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-convenience-script RUN curl -fsSL get.docker.com -o get-docker.sh RUN sh get-docker.sh