py-botocore
Source
FROM stagex/pallet-python AS build
ARG VERSION
ADD fetch/py-botocore-${VERSION}.tar.gz .
WORKDIR /botocore-${VERSION}
RUN <<-EOF
set -eu
sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
mkdir -p "/rootfs/${sitedir}"
cp -a botocore "/rootfs/$sitedir"
find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!