mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
docker: Separate builder from runner stage in alpine docker image
Should result in smaller images.
This commit is contained in:
parent
0acdc911a5
commit
6fb653ef97
1 changed files with 10 additions and 2 deletions
|
@ -35,5 +35,13 @@ RUN git clone /source /repo --recursive && \
|
|||
make -j $(nproc) && \
|
||||
make install
|
||||
|
||||
# TODO: review entry point here, to make this availale for the user
|
||||
CMD ["lightningd", "--version"]
|
||||
FROM alpine:3.16 as runner
|
||||
|
||||
COPY --from=builder /usr/bin/lightningd /usr/bin/
|
||||
COPY --from=builder /usr/bin/lightning-cli /usr/bin/
|
||||
COPY --from=builder /usr/bin/lightning-hsmtool /usr/bin/
|
||||
COPY --from=builder /usr/libexec/c-lightning /usr/libexec/c-lightning
|
||||
COPY --from=builder /usr/share/man/man8 /usr/share/man/man8
|
||||
COPY --from=builder /usr/share/doc/c-lightning /usr/share/doc/c-lightning
|
||||
|
||||
ENTRYPOINT ["/usr/bin/lightningd"]
|
||||
|
|
Loading…
Add table
Reference in a new issue