Skip to content

Commit

Permalink
Merge pull request #913 from ZZiigguurraatt/taproot-assets-build-arg
Browse files Browse the repository at this point in the history
dev.Dockerfile: allow forcing a specific taproot-assets version
  • Loading branch information
guggero authored Dec 11, 2024
2 parents 890764a + e192d1e commit 1f4a0cd
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 custom taproot-assets version supplied, apply it
&& 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 1f4a0cd

Please sign in to comment.