Skip to content

Commit 8d628d6

Browse files
ZZiigguurraattZZiigguurraatt
authored andcommitted
dev.Dockerfile: allow forcing an lnd version
We can now use the `LND_VERSION` build argument to force a specific LND version to be used when building. If the `LND_VERSION` build argument is not set, then build continues as before this change and uses the version already defined in `go.mod` and `go.sum`.
1 parent 2bc7e7f commit 8d628d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ ARG NO_UI
4141
# Install dependencies and install/build lightning-terminal.
4242
RUN apk add --no-cache --update alpine-sdk make \
4343
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
44+
# If a custom lnd version is supplied, force it now.
45+
&& if [ -n "$LND_VERSION" ]; then \
46+
go get -v github.com/lightningnetwork/lnd@$LND_VERSION \
47+
&& go mod tidy; \
48+
fi \
4449
# If a custom taproot-assets version is supplied, force it now.
4550
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
4651
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \

0 commit comments

Comments
 (0)