py-s3transfer
Source
FROM stagex/pallet-python AS build
COPY --from=stagex/user-py-botocore . /
COPY --from=stagex/user-py-awscrt . /
ARG VERSION
ADD fetch/py-s3transfer-${VERSION}.tar.gz .
ENV SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION}
WORKDIR /s3transfer-${VERSION}
RUN --network=none <<-EOF
set -eu
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
python -m installer --destdir=/rootfs .dist/*.whl
install -vDm644 -t /rootfs/usr/share/licenses/py-s3transfer LICENSE.txt
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!