aws-cli

Details
Source
FROM stagex/pallet-cython AS build
ARG VERSION
COPY --from=stagex/core-libunwind . /
COPY --from=stagex/user-py-jmespath . /
COPY --from=stagex/user-py-six . /
COPY --from=stagex/user-py-botocore . /
COPY --from=stagex/user-py-awscrt . /
COPY --from=stagex/user-py-certifi . /
COPY --from=stagex/user-py-cryptography . /
COPY --from=stagex/user-py-colorama . /
COPY --from=stagex/user-py-docutils . /
COPY --from=stagex/user-py-wcwidth . /
COPY --from=stagex/user-py-prompt_toolkit . /
COPY --from=stagex/user-py-ruamel.yaml . /
ADD fetch/aws-cli-${VERSION}.tar.gz .
WORKDIR /aws-cli-${VERSION}
RUN --network=none <<-EOF
	set -eux
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
	python -m installer -d /rootfs .dist/*.whl
  find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
  rm /rootfs/usr/lib/python*/site-packages/awscli-*.dist-info/RECORD
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /