mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 19:32:30 +01:00
7eea00edf3
Signed-off-by: Michael Käufl <dockerfiles@c.michael-kaeufl.de>
21 lines
463 B
Docker
21 lines
463 B
Docker
FROM alpine:latest
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
RUN apk --no-cache add \
|
|
ca-certificates \
|
|
groff \
|
|
less \
|
|
python \
|
|
py2-pip \
|
|
&& pip install awscli \
|
|
&& mkdir -p /root/.aws \
|
|
&& { \
|
|
echo '[default]'; \
|
|
echo 'output = json'; \
|
|
echo 'region = $AWS_DEFAULT_REGION'; \
|
|
echo 'aws_access_key_id = $AMAZON_ACCESS_KEY_ID'; \
|
|
echo 'aws_secret_access_key = $AMAZON_SECRET_ACCESS_KEY'; \
|
|
} > /root/.aws/config
|
|
|
|
ENTRYPOINT [ "aws" ]
|