From f9cb0bd31212438d9241b49526aa7769af1b2098 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..d2d2210 100644 --- a/core-lightning/alpine/Dockerfile +++ b/core-lightning/alpine/Dockerfile @@ -1,3 +1,10 @@ +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 builder ARG CLN_VERSION=v24.05 @@ -47,7 +54,7 @@ RUN make -j$(nproc) \ RUN make install -FROM alpine:3.20 +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..0efe46f 100644 --- a/core-lightning/debian/Dockerfile +++ b/core-lightning/debian/Dockerfile @@ -1,3 +1,10 @@ +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 builder ARG CLN_VERSION=v24.05 @@ -50,9 +57,11 @@ RUN make -j$(nproc) \ RUN make install -FROM debian:12-slim +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"]