Skip to content

Commit 41b4389

Browse files
ZZiigguurraattguggero
ZZiigguurraatt
authored andcommitted
dev.Dockerfile: allow forcing a specific taproot-assets version through a build argument
1 parent edd610f commit 41b4389

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

dev.Dockerfile

+11-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,19 @@ 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+
# Please see https://go.dev/ref/mod#version-queries for the types of
28+
# queries that can be used to define a version.
29+
ARG TAPROOT_ASSETS_VERSION
30+
2631
# Install dependencies and install/build lightning-terminal.
27-
RUN apk add --no-cache --update alpine-sdk \
28-
make \
32+
RUN apk add --no-cache --update alpine-sdk make \
2933
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
34+
# If a custom taproot-assets version is supplied, force it now.
35+
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
36+
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
37+
&& go mod tidy; \
38+
fi \
3039
&& make go-install \
3140
&& make go-install-cli
3241

0 commit comments

Comments
 (0)