Skip to content

Commit c1587cb

Browse files
authored
Merge pull request #18 from ercpereda/install-awscli-2
Install version 2 of awscli
2 parents ad367db + 074f2e7 commit c1587cb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
FROM ubuntu:18.04
22

3-
RUN apt-get update && apt-get install -y --no-install-recommends curl cron awscli
3+
RUN apt-get update && apt-get install -y --no-install-recommends curl cron ca-certificates unzip
44
RUN rm -rf /var/lib/apt/lists/*
55

6+
# Install awscliv2 https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
7+
RUN curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
8+
RUN unzip -q awscliv2.zip
9+
RUN ./aws/install -i /usr/bin -b /usr/bin
10+
RUN rm -rf ./aws awscliv2.zip
11+
RUN aws --version
12+
613
# https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-convenience-script
714
RUN curl -fsSL get.docker.com -o get-docker.sh
815
RUN sh get-docker.sh

0 commit comments

Comments
 (0)