Skip to content

Commit

Permalink
Merge pull request #18 from ercpereda/install-awscli-2
Browse files Browse the repository at this point in the history
Install version 2 of awscli
  • Loading branch information
jareware authored Oct 24, 2020
2 parents ad367db + 074f2e7 commit c1587cb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c1587cb

Please sign in to comment.