summaryrefslogtreecommitdiff
path: root/packaging/docker-alpine/libgnunet-builder.Containerfile
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/docker-alpine/libgnunet-builder.Containerfile')
-rw-r--r--packaging/docker-alpine/libgnunet-builder.Containerfile34
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/docker-alpine/libgnunet-builder.Containerfile b/packaging/docker-alpine/libgnunet-builder.Containerfile
new file mode 100644
index 0000000..667bffa
--- /dev/null
+++ b/packaging/docker-alpine/libgnunet-builder.Containerfile
@@ -0,0 +1,34 @@
+FROM taler-alpine-imaging/libmicrohttpd:builder
+
+WORKDIR /builder
+RUN git clone https://git.gnunet.org/gnunet.git gnunet --recursive -j 8
+WORKDIR /builder/gnunet
+# instead of bootstrap for a more minimal build
+RUN git submodule update --init --force --remote
+
+RUN apk add gettext gettext-dev gettext-static gettext-libs py3-gettext libgcrypt libgcrypt-dev jansson jansson-dev libsodium libsodium-dev libunistring libunistring-dev libpq libpq-dev
+ENV AUTOPOINT=autopoint
+
+RUN mkdir -p doc/handbook/texinfo/
+RUN touch doc/handbook/texinfo/gnunet.texi
+
+RUN autoreconf -fi
+RUN ./configure \
+ --prefix=/prefix/usr \
+ --with-microhttpd=/prefix/usr \
+ --sysconfdir=/prefix/etc \
+ --mandir=/prefix/usr/share/man \
+ --localstatedir=/prefix/var \
+ --disable-poisoning \
+ --enable-logging=verbose
+
+WORKDIR /builder/gnunet/src/include
+RUN make install
+WORKDIR /builder/gnunet/src/lib
+RUN make -j
+RUN make install
+
+LABEL org.opencontainers.image.title="LibGNUNet: Builder"
+LABEL org.opencontainers.image.description="The image that was used to build the matching :latest tag"
+LABEL org.opencontainers.image.source="https://git.taler.net/deployment.git/tree/packaging/docker-alpine/libgnunet-builder.Containerfile"
+LABEL org.opencontainers.image.authors="Nullptrderef <nullptrderef@proton.me>"