mirror of
https://github.com/maxkratz/dockerfiles.git
synced 2024-09-08 00:03:50 +00:00
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.
This commit is contained in:
parent
10cf8b8945
commit
c15f85686b
1 changed files with 10 additions and 3 deletions
|
@ -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 <jess@linux.com>"
|
||||
|
||||
|
@ -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]'; \
|
||||
|
|
Loading…
Reference in a new issue