From 909545dc16a4762f967c4e229b8f09d4b4655261 Mon Sep 17 00:00:00 2001 From: Marcel Hernandez Date: Thu, 11 Jul 2024 19:10:10 +0200 Subject: [PATCH] cln: install trustedcoin plugin --- core-lightning/alpine/Dockerfile | 11 ++++++++++- core-lightning/debian/Dockerfile | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/core-lightning/alpine/Dockerfile b/core-lightning/alpine/Dockerfile index 08bd22e..0220bf6 100644 --- a/core-lightning/alpine/Dockerfile +++ b/core-lightning/alpine/Dockerfile @@ -47,7 +47,14 @@ RUN make -j$(nproc) \ RUN make install -FROM alpine:3.20 +FROM golang:1.22-alpine AS trustedcoin + +ENV CGO_ENABLED=0 + +RUN go install -trimpath -ldflags="-d -s -w" github.com/nbd-wtf/trustedcoin@latest + + +FROM alpine:3.20 AS final RUN apk add --no-cache \ libgcc \ @@ -56,4 +63,6 @@ RUN apk add --no-cache \ COPY --from=builder /usr/local/bin /usr/local/bin COPY --from=builder /usr/local/libexec /usr/local/libexec +COPY --from=trustedcoin /go/bin/trustedcoin /usr/local/bin/ + CMD ["/usr/local/bin/lightningd"] diff --git a/core-lightning/debian/Dockerfile b/core-lightning/debian/Dockerfile index 29a5072..8ac7a4a 100644 --- a/core-lightning/debian/Dockerfile +++ b/core-lightning/debian/Dockerfile @@ -50,9 +50,18 @@ RUN make -j$(nproc) \ RUN make install -FROM debian:12-slim +FROM golang:1.22-bookworm AS trustedcoin + +ENV CGO_ENABLED=0 + +RUN go install -trimpath -ldflags="-d -s -w" github.com/nbd-wtf/trustedcoin@latest + + +FROM debian:12-slim AS final COPY --from=builder /usr/local/bin /usr/local/bin COPY --from=builder /usr/local/libexec /usr/local/libexec +COPY --from=trustedcoin /go/bin/trustedcoin /usr/local/bin/ + CMD ["/usr/local/bin/lightningd"]