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
3030#  queries required to connect to linked containers succeed.
3131ENV  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
3638ARG  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.
4244RUN  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 \
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments