A Python port of the Invisible Internet Project (I2P)
1# Build environment for .rpm packages.
2# Isolated Fedora container with fpm.
3#
4# Build image:
5# podman build -t i2p-build-rpm -f build/linux-rpm/Containerfile .
6#
7# Run build:
8# podman run --rm -v ./dist:/out:Z i2p-build-rpm
9
10FROM fedora:41
11
12RUN dnf install -y --setopt=install_weak_deps=False \
13 python3 python3-pip python3-devel \
14 ruby ruby-devel gcc gcc-c++ make rpm-build \
15 libffi-devel redhat-rpm-config \
16 && gem install fpm --no-document \
17 && dnf clean all
18
19WORKDIR /build
20COPY . /build/
21
22CMD ["bash", "build/linux-rpm/build.sh"]