dockerfiles/awscli/Dockerfile
Marc Cornellà 7ac4881609 Use `apk --no-cache' on alpine images (#144)
This enables us to remove the following patterns that required
a `rm -rf /var/cache/apk`:

- `apk update`
- `apk add --update`
- `apk add --update-cache`

Supported since alpine 3.3.
2016-06-06 03:40:20 +00:00

21 lines
456 B
Docker

FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk --no-cache add \
ca-certificates \
groff \
less \
python \
py-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" ]