Skip to content

Commit 25ac374

Browse files
Merge pull request #1090 from ZZiigguurraatt/LND_VERSION
dev.Dockerfile: allow forcing an lnd version
2 parents 2bc7e7f + 2d3379b commit 25ac374

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dev.Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
3030
# queries required to connect to linked containers succeed.
3131
ENV GODEBUG netdns=cgo
3232

33-
# Allow forcing a specific taproot-assets version through a build argument.
33+
# Allow forcing a specific lnd and taproot-assets version through a build
34+
# argument.
3435
# Please see https://go.dev/ref/mod#version-queries for the types of
3536
# queries that can be used to define a version.
37+
ARG LND_VERSION
3638
ARG TAPROOT_ASSETS_VERSION
3739

3840
# Need to restate this since running in a new container from above.
@@ -41,6 +43,11 @@ ARG NO_UI
4143
# Install dependencies and install/build lightning-terminal.
4244
RUN apk add --no-cache --update alpine-sdk make \
4345
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
46+
# If a custom lnd version is supplied, force it now.
47+
&& if [ -n "$LND_VERSION" ]; then \
48+
go get -v github.com/lightningnetwork/lnd@$LND_VERSION \
49+
&& go mod tidy; \
50+
fi \
4451
# If a custom taproot-assets version is supplied, force it now.
4552
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
4653
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \

0 commit comments

Comments
 (0)