Skip to content

Commit 2db47f9

Browse files
ZZiigguurraattZZiigguurraatt
authored andcommitted
dev.Dockerfile: allow forcing a specific taproot-assets version through a build argument
1 parent 868e57c commit 2db47f9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

dev.Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,18 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
2323
# queries required to connect to linked containers succeed.
2424
ENV GODEBUG netdns=cgo
2525

26+
# allow forcing a specific taproot-assets version through a build argument
27+
# see https://go.dev/ref/mod#version-queries for the types of queries that can be used to define a version
28+
ARG TAPROOT_ASSETS_VERSION
29+
2630
# Install dependencies and install/build lightning-terminal.
27-
RUN apk add --no-cache --update alpine-sdk \
28-
make \
31+
RUN apk add --no-cache --update alpine-sdk make \
2932
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
33+
# if custom taproot-assets version supplied, apply it
34+
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
35+
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
36+
&& go mod tidy; \
37+
fi \
3038
&& make go-install \
3139
&& make go-install-cli
3240

0 commit comments

Comments
 (0)