Skip to content

Commit

Permalink
cln: install trustedcoin plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Jul 11, 2024
1 parent b39784a commit f9cb0bd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion core-lightning/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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"]
11 changes: 10 additions & 1 deletion core-lightning/debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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"]

0 comments on commit f9cb0bd

Please sign in to comment.