Files
awscli/Dockerfile
T
Sagent 83f8fc197f
Docker Build and Push / lint (pull_request) Successful in 5s
Docker Build and Push / build (pull_request) Failing after 15s
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped
fix: update awscli to v1.45.27 for Python 3.12+ compatibility
2026-06-10 23:44:00 +00:00

20 lines
524 B
Docker

FROM python:3.9-alpine
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
ARG CLI_VERSION=1.45.27
# hadolint ignore=DL3018,DL3013
RUN apk --no-cache upgrade && \
apk --no-cache add --virtual build-dependencies \
groff \
jq \
less && \
pip install --no-cache-dir awscli==${CLI_VERSION} && \
apk del build-dependencies && \
rm -rf /usr/lib/ruby/gems/*/cache/* \
/var/cache/apk/* \
/tmp/* \
/var/tmp/*
WORKDIR /data
ENTRYPOINT ["/usr/local/bin/aws"]