A Python port of the Invisible Internet Project (I2P)
at main 22 lines 702 B view raw
1# Test container with pqcrypto for ML-KEM / post-quantum crypto tests. 2# 3# pqcrypto ships pre-built wheels with CFFI bindings, so no native 4# compilation is needed (unlike the old liboqs two-stage build). 5# 6# Build: 7# podman build -t i2p-python-test:latest -f Containerfile.test . 8# 9# Usage: 10# podman run --rm -v "$(pwd):/app:Z" -w /app i2p-python-test:latest \ 11# bash -c "pip install -e '.[dev]' -q 2>/dev/null && python -m pytest tests/ -q" 12 13FROM python:3.11-slim 14 15# Install build dependencies for CFFI wheels 16RUN apt-get update -qq \ 17 && apt-get install -y --no-install-recommends gcc libffi-dev \ 18 && rm -rf /var/lib/apt/lists/* 19 20RUN pip install --no-cache-dir pqcrypto 21 22WORKDIR /app