Skip to content

Commit ad2d802

Browse files
ZZiigguurraattZZiigguurraatt
authored andcommitted
dev.Dockerfile: add CGO_ENABLED build arg
1 parent 40d3bdb commit ad2d802

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dev.Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ ARG TAPRPC_VERSION
4141
# Need to restate this since running in a new container from above.
4242
ARG NO_UI
4343

44+
# Allow defining the CGO_ENABLED variable so we can build binaries
45+
# that will work in a different type of container.
46+
# `go` assumes `CGO_ENABLED=1` if not defined, but we make it explicit here
47+
# to be more clear of the default value.
48+
ARG CGO_ENABLED=1
49+
4450
# Install dependencies and install/build lightning-terminal.
4551
RUN apk add --no-cache --update alpine-sdk make \
4652
&& cd /go/src/github.com/lightninglabs/lightning-terminal \

0 commit comments

Comments
 (0)