docker: add git_url build-arg
This commit is contained in:
1 parent
4d9a05c2f4
commit
7865384e85
3 files changed
+11
-2
No files matched your search
+2
-1
@@ -14,13 +14,14 @@ ENV GODEBUG netdns=cgo
|
||||
# image to be built from a specified Git state. The default image
|
||||
# will use the Git tip of master by default.
|
||||
ARG checkout="master"
|
||||
ARG git_url="https://github.com/lightningnetwork/lnd"
|
||||
|
||||
# Install dependencies and build the binaries.
|
||||
RUN apk add --no-cache --update alpine-sdk \
|
||||
git \
|
||||
make \
|
||||
gcc \
|
||||
&& git clone https://github.com/lightningnetwork/lnd /go/src/github.com/lightningnetwork/lnd \
|
||||
&& git clone $git_url /go/src/github.com/lightningnetwork/lnd \
|
||||
&& cd /go/src/github.com/lightningnetwork/lnd \
|
||||
&& git checkout $checkout \
|
||||
&& make release-install
|
||||
|
||||
Reference in new issue
Block a user