mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
dev.Dockerfile: allow forcing a specific taproot-assets version through a build argument
This commit is contained in:
parent
edd610ff14
commit
41b438945b
1 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue