py-passlib

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/pallet-python . /
COPY --from=stagex/core-py-setuptools . /
COPY --from=stagex/core-py-wheel . /
ADD fetch/py-passlib-${VERSION}.tar.gz .
WORKDIR /passlib-${VERSION}/
RUN --network=none <<-EOF
  set -eu
  python setup.py install -O1 --root=/rootfs
  install -Dm644 LICENSE /rootfs/usr/share/licenses/py-passlib/LICENSE
  find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF

FROM stagex/core-filesystem AS py-passlib
COPY --from=build /rootfs /