-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alpinized CLN and switch ubuntu to debian
- Loading branch information
Showing
3 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM alpine:3.20 AS builder | ||
|
||
ARG CLN_VERSION=v24.05 | ||
|
||
RUN apk add --no-cache \ | ||
autoconf \ | ||
automake \ | ||
build-base \ | ||
ca-certificates \ | ||
gettext \ | ||
git \ | ||
gnupg \ | ||
jq \ | ||
libpq-dev \ | ||
libtool \ | ||
py3-pip \ | ||
py3-setuptools \ | ||
sqlite-dev \ | ||
sqlite-static \ | ||
zlib-dev \ | ||
zlib-static | ||
|
||
RUN pip install --break-system-packages \ | ||
grpcio-tools \ | ||
mako | ||
|
||
WORKDIR /tmp | ||
|
||
COPY developer_pubkeys.pem . | ||
|
||
RUN git clone --depth 1 --branch ${CLN_VERSION} --recurse-submodules https://github.com/ElementsProject/lightning.git | ||
|
||
WORKDIR /tmp/lightning | ||
|
||
RUN gpg --import /tmp/developer_pubkeys.pem \ | ||
&& git verify-tag "${CLN_VERSION}" | ||
|
||
ENV LDFLAGS="-s" | ||
|
||
RUN ./configure \ | ||
--disable-rust \ | ||
--enable-static | ||
|
||
RUN make -j$(nproc) \ | ||
&& git checkout -- . | ||
|
||
RUN make install | ||
|
||
|
||
FROM alpine:3.20 | ||
|
||
RUN apk add --no-cache \ | ||
libgcc \ | ||
libpq | ||
|
||
COPY --from=builder /usr/local/bin /usr/local/bin | ||
COPY --from=builder /usr/local/libexec /usr/local/libexec | ||
|
||
CMD ["/usr/local/bin/lightningd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters