A Python port of the Invisible Internet Project (I2P)
1# Build environment for Windows .exe installer.
2# Uses pynsist to cross-build a Windows installer from Linux.
3# pynsist downloads a Windows Python embeddable distribution and
4# packages everything into an NSIS installer.
5#
6# Build image:
7# podman build -t i2p-build-windows -f build/windows/Containerfile .
8#
9# Run build:
10# podman run --rm -v ./dist:/out:Z i2p-build-windows
11
12FROM python:3.12-slim
13
14RUN apt-get update -qq \
15 && apt-get install -y --no-install-recommends \
16 nsis \
17 && rm -rf /var/lib/apt/lists/*
18
19RUN pip install --no-cache-dir pynsist
20
21WORKDIR /build
22COPY . /build/
23
24CMD ["bash", "build/windows/build.sh"]