From e2a71b7d140766d8b1ad3c65f2a425318a2f9ec5 Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 11 Dec 2025 15:22:39 +0000 Subject: [PATCH] Use shallow pinned refs for gnunet/exchange/merchant/libeufin --- Dockerfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a550b7..91010aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,12 @@ FROM debian:sid ENV DEBIAN_FRONTEND=noninteractive +# Pin refs (branch/tag/commit) for shallow clones; adjust as needed. +ARG GNUNET_REF=master +ARG EXCHANGE_REF=master +ARG MERCHANT_REF=master +ARG LIBEUFIN_REF=master + RUN apt-get update && apt-get install -y \ build-essential git automake libtool pkg-config \ libgnutls28-dev libjansson-dev libsqlite3-dev \ @@ -10,20 +16,20 @@ RUN apt-get update && apt-get install -y \ && rm -rf /var/lib/apt/lists/* # GNUnet (falls nicht schon systemweit neu genug) -RUN git clone https://git.taler.net/gnunet.git /src/gnunet && \ +RUN git clone --depth 1 --branch "${GNUNET_REF}" https://git.taler.net/gnunet.git /src/gnunet && \ cd /src/gnunet && ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install # Taler Exchange + Merchant -RUN git clone https://git.taler.net/exchange.git /src/exchange && \ +RUN git clone --depth 1 --branch "${EXCHANGE_REF}" https://git.taler.net/exchange.git /src/exchange && \ cd /src/exchange && ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install && \ - git clone https://git.taler.net/merchant.git /src/merchant && \ + git clone --depth 1 --branch "${MERCHANT_REF}" https://git.taler.net/merchant.git /src/merchant && \ cd /src/merchant && ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install # LibEuFin (Bank) -RUN git clone https://git.taler.net/libeufin.git /src/libeufin && \ +RUN git clone --depth 1 --branch "${LIBEUFIN_REF}" https://git.taler.net/libeufin.git /src/libeufin && \ cd /src/libeufin && ./bootstrap && \ ./configure --prefix=/usr && make -j$(nproc) && make install