From c15f85686b3e265822460177d8191a53c970da1c Mon Sep 17 00:00:00 2001 From: Adam Leskis Date: Fri, 15 May 2020 06:49:13 +0100 Subject: [PATCH] update image to use python3 (#531) python2 has reached end of life, so replacing it with python3. In addition, pip (python3 version) comes along with the python3 install on alpine, so no need to install that explicitly. --- awscli/Dockerfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/awscli/Dockerfile b/awscli/Dockerfile index 57f9eef..892dc1d 100644 --- a/awscli/Dockerfile +++ b/awscli/Dockerfile @@ -1,3 +1,11 @@ +# Run awscli in a container and list s3 buckets +# +# docker run --rm -it \ +# --name awscli \ +# jess/awscli \ +# s3 ls +# + FROM alpine:latest LABEL maintainer "Jessie Frazelle " @@ -5,9 +13,8 @@ RUN apk --no-cache add \ ca-certificates \ groff \ less \ - python \ - py2-pip \ - && pip install awscli \ + python3 \ + && pip3 install awscli \ && mkdir -p /root/.aws \ && { \ echo '[default]'; \