File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
30
30
# queries required to connect to linked containers succeed.
31
31
ENV GODEBUG netdns=cgo
32
32
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.
34
35
# Please see https://go.dev/ref/mod#version-queries for the types of
35
36
# queries that can be used to define a version.
37
+ ARG LND_VERSION
36
38
ARG TAPROOT_ASSETS_VERSION
37
39
38
40
# Need to restate this since running in a new container from above.
@@ -41,6 +43,11 @@ ARG NO_UI
41
43
# Install dependencies and install/build lightning-terminal.
42
44
RUN apk add --no-cache --update alpine-sdk make \
43
45
&& 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 \
44
51
# If a custom taproot-assets version is supplied, force it now.
45
52
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
46
53
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
You can’t perform that action at this time.
0 commit comments