Skip to content

Commit

Permalink
dev.Dockerfile: allow forcing a specific taproot-assets version throu…
Browse files Browse the repository at this point in the history
…gh a build argument
  • Loading branch information
ZZiigguurraatt authored and guggero committed Dec 17, 2024
1 parent 38c4624 commit a9a9f02
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,19 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
# queries required to connect to linked containers succeed.
ENV GODEBUG netdns=cgo

# Allow forcing a specific taproot-assets version through a build argument.
# Please see https://go.dev/ref/mod#version-queries for the types of
# queries that can be used to define a version.
ARG TAPROOT_ASSETS_VERSION

# Install dependencies and install/build lightning-terminal.
RUN apk add --no-cache --update alpine-sdk \
make \
RUN apk add --no-cache --update alpine-sdk make \
&& cd /go/src/github.com/lightninglabs/lightning-terminal \
# If a custom taproot-assets version is supplied, force it now.
&& if [ -n "$TAPROOT_ASSETS_VERSION" ]; then \
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
&& go mod tidy; \
fi \
&& make go-install \
&& make go-install-cli

Expand Down

0 comments on commit a9a9f02

Please sign in to comment.