py-six

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-python . /
COPY --from=stagex/core-py-flit . /
COPY --from=stagex/core-zlib . /
ADD fetch/py-six-${VERSION}.tar.gz .
WORKDIR /six-${VERSION}
RUN --network=none <<-EOF
	set -eu
	sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
	mkdir -p "/rootfs/${sitedir}"
	cp six.py "/rootfs/${sitedir}/"
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /