Skip to content

Commit 6c25d20

Browse files
docker: Cleaned up Dockerfile's Core Lightning installation
With PR #7618, Core Lightning installation with relative paths has been fixed and can be used again. Changelog-None.
1 parent 624d8b7 commit 6c25d20

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ RUN ( ! [ "${target_host}" = "arm-linux-gnueabihf" ] ) || \
199199
# https://github.com/ElementsProject/lightning/pull/7376#issuecomment-2161102381
200200
RUN poetry lock --no-update && poetry install
201201

202-
RUN ./configure --enable-static && make && poetry run make install
202+
RUN ./configure --prefix=/tmp/lightning_install --enable-static && make && poetry run make install
203203

204204
# Export the requirements for the plugins so we can install them in builder-python stage
205205
WORKDIR /opt/lightningd/plugins/clnrest
@@ -273,9 +273,7 @@ RUN mkdir $LIGHTNINGD_DATA && \
273273
touch $LIGHTNINGD_DATA/config
274274
VOLUME [ "/root/.lightning" ]
275275

276-
COPY --from=builder /usr/local/bin/lightning-cli /usr/local/bin/lightning-hsmtool /usr/local/bin/lightningd /usr/local/bin/reckless /usr/local/bin/
277-
COPY --from=builder /usr/local/libexec/ /usr/local/libexec
278-
COPY --from=builder /usr/local/share/ /usr/local/share
276+
COPY --from=builder /tmp/lightning_install/ /usr/local/
279277
COPY --from=builder-python /usr/local/lib/python3.9/dist-packages/ /usr/local/lib/python3.9/dist-packages/
280278
COPY --from=downloader /opt/bitcoin/bin /usr/bin
281279
COPY --from=downloader /opt/litecoin/bin /usr/bin

0 commit comments

Comments
 (0)