Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-libffi . /
COPY --from=stagex/core-python . /
COPY --from=stagex/core-py-flit . /
COPY --from=stagex/core-py-gpep517 . /
COPY --from=stagex/core-py-installer . /
COPY --from=stagex/core-py-setuptools . /
COPY --from=stagex/core-py-wheel . /
COPY --from=stagex/core-zlib . /
ADD fetch/py-sphinxcontrib-applehelp-${VERSION}.tar.gz .
WORKDIR /sphinxcontrib-applehelp-${VERSION}
RUN --network=none <<-EOF
set -eu
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
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /