Use awscli from Alpine
Python2 is no longer in the Alpine repos. Skip pip and just use the awscli from Alpine, which is on Python 3.
This commit is contained in:
@@ -2,15 +2,10 @@ FROM alpine:3
|
||||
|
||||
RUN apk -v --update add \
|
||||
bash \
|
||||
python \
|
||||
py-pip \
|
||||
groff \
|
||||
less \
|
||||
mailcap \
|
||||
aws-cli \
|
||||
jq \
|
||||
wget \
|
||||
&& \
|
||||
pip install --upgrade awscli==1.14.5 s3cmd==2.0.1 python-magic && \
|
||||
apk -v --purge del py-pip && \
|
||||
rm /var/cache/apk/*
|
||||
|
||||
@@ -22,4 +17,4 @@ RUN echo -e "*/10 * * * * /bin/bash update-dns.sh >> /var/log/cron.log 2>&1" > /
|
||||
RUN crontab /etc/cron.d/dns-cron
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
CMD crond && tail -f /var/log/cron.log
|
||||
CMD crond && tail -f /var/log/cron.log
|
||||
|
||||
Reference in New Issue
Block a user