i2pd: add initial image

This commit is contained in:
ace 2025-05-13 00:13:23 +03:00
parent f7b3aa3099
commit bf1db33bf9
Signed by: ace
GPG Key ID: F7EC00FB2C3118AD
2 changed files with 29 additions and 0 deletions

12
i2pd/Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM almalinux:9
ARG I2PD_VERSION
ARG I2PD_BUILD
RUN dnf install -y epel-release dnf-plugins-core \
&& dnf update -y \
&& dnf config-manager --enable crb \
&& dnf clean all \
&& rm -rf /var/cache/yum
RUN dnf install -y https://github.com/PurpleI2P/i2pd/releases/download/${I2PD_VERSION}/i2pd-${I2PD_VERSION}-${I2PD_BUILD}.el9.x86_64.rpm

17
i2pd/Makefile Normal file
View File

@ -0,0 +1,17 @@
VERSION=2.56.0
BUILD=1
IMAGE=i2pd
REGISTRY=gitea.geekhome.org/ghp
.PHONY: build push all
build:
docker build $(NO_CACHE) \
--build-arg I2PD_VERSION=$(VERSION) \
--build-arg I2PD_BUILD=$(BUILD) \
-t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
push:
docker push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
all: build push