FROM python:alpine
ARG VERSION=0.8.0
RUN pip install awslogs${VERSION+==$VERSION}
LABEL io.whalebrew.name awslogs
LABEL io.whalebrew.config.environment '["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "AWS_DEFAULT_REGION", "AWS_DEFAULT_PROFILE", "AWS_CONFIG_FILE"]'
LABEL io.whalebrew.config.volumes '["~/.aws:/.aws"]'
ENTRYPOINT ["awslogs"]
