2015-07-27 06:46:34 +02:00
|
|
|
FROM alpine:latest
|
2014-10-09 19:38:11 +02:00
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
2015-07-27 06:46:34 +02:00
|
|
|
RUN apk update && apk add \
|
|
|
|
ca-certificates \
|
|
|
|
groff \
|
|
|
|
python \
|
|
|
|
py-pip \
|
|
|
|
&& rm -rf /var/cache/apk/* \
|
2015-07-27 07:40:32 +02:00
|
|
|
&& pip install awscli \
|
|
|
|
&& mkdir -p /root/.aws \
|
|
|
|
&& { \
|
|
|
|
echo '[default]'; \
|
|
|
|
echo 'output = json'; \
|
|
|
|
echo 'region = $AMAZON_REGION'; \
|
|
|
|
echo 'aws_access_key_id = $AMAZON_ACCESS_KEY_ID'; \
|
|
|
|
echo 'aws_secret_access_key = $AMAZON_SECRET_ACCESS_KEY'; \
|
|
|
|
} > /root/.aws/config
|
2014-10-09 20:39:37 +02:00
|
|
|
|
2014-10-09 19:38:11 +02:00
|
|
|
ENTRYPOINT [ "aws" ]
|