py-pynacl

Source

FROM stagex/pallet-cython AS build
ARG VERSION
COPY --from=stagex/core-py-cffi . /
COPY --from=stagex/user-libsodium . /
COPY --from=stagex/user-py-pycparser . /
ADD fetch/pynacl-${VERSION}.tar.gz .
WORKDIR /pynacl-${VERSION}
ENV SODIUM_INSTALL=system
ENV CFLAGS="-s"
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
	install -vDm644 -t /rootfs/usr/share/licenses/py-pynacl LICENSE
EOF

FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /
Copied to clipboard!