mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
f2b0d9ce8a
Signed-off-by: Jessica Frazelle <princess@docker.com>
21 lines
476 B
Docker
21 lines
476 B
Docker
FROM alpine:latest
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apk update && apk add \
|
|
ca-certificates \
|
|
groff \
|
|
python \
|
|
py-pip \
|
|
&& rm -rf /var/cache/apk/* \
|
|
&& 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
|
|
|
|
ENTRYPOINT [ "aws" ]
|