Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ARG STRIP=${target_arch}-strip
ARG TARGET=${target_arch_rust}
ARG RUST_PROFILE=release
ARG VERSION
ENV VERSION=${VERSION}
ARG MAKE_JOBS

#TODO: set all the following cargo config options via env variables (https://doc.rust-lang.org/cargo/reference/environment-variables.html)
RUN mkdir -p .cargo && tee .cargo/config.toml <<EOF
Expand Down Expand Up @@ -155,7 +155,11 @@ COPY .git/ .git/
RUN git submodule update --init --recursive --jobs $(nproc) --depth 1

RUN ./configure --prefix=/tmp/lightning_install --enable-static --disable-compat --disable-valgrind
RUN uv run make install-program -j$(nproc)
RUN if [ -n "${VERSION:-}" ]; then \
VERSION="${VERSION}" uv run make install-program -j"${MAKE_JOBS:-$(nproc)}"; \
else \
uv run make install-program -j"${MAKE_JOBS:-$(nproc)}"; \
fi

RUN find /tmp/lightning_install -type f -executable -exec \
file {} + | \
Expand Down Expand Up @@ -284,4 +288,4 @@ VOLUME ["/root/.lightning"]
ENTRYPOINT ["/entrypoint.sh"]

# Default target (for backward compatibility)
FROM lightningd AS final
FROM lightningd AS final