Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Last active December 6, 2022 07:44
Show Gist options
  • Save katzefudder/f683b17a82714d5d5499d1b4390e0a4d to your computer and use it in GitHub Desktop.
Save katzefudder/f683b17a82714d5d5499d1b4390e0a4d to your computer and use it in GitHub Desktop.
AWS CLI dockerized with Alpine Linux
FROM alpine:3.14
ENV AWSCLI_VERSION "1.20.7"
RUN apk add --update \
python3 \
python3-dev \
py-pip \
build-base \
&& pip install awscli==$AWSCLI_VERSION --upgrade --user \
&& rm -rf /var/cache/apk/*
ENTRYPOINT ["/root/.local/bin/aws"]
@katzefudder
Copy link
Author

docker build --force-rm --no-cache -t awscli-alpine .

@katzefudder
Copy link
Author

docker run -ti awscli-alpine --version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment