Skip to content

Commit d6b7557

Browse files
authored
Merge pull request #1142 from ZZiigguurraatt/dev_Dockerfile_CGO_ENABLED
dev.Dockerfile: add CGO_ENABLED build arg
2 parents e3a8589 + ad2d802 commit d6b7557

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
@@ -63,6 +63,12 @@ ARG LOOP_VERSION
6363
# Need to restate this since running in a new container from above.
6464
ARG NO_UI
6565

66+
# Allow defining the CGO_ENABLED variable so we can build binaries
67+
# that will work in a different type of container.
68+
# `go` assumes `CGO_ENABLED=1` if not defined, but we make it explicit here
69+
# to be more clear of the default value.
70+
ARG CGO_ENABLED=1
71+
6672
# Install dependencies and install/build lightning-terminal.
6773
RUN apk add --no-cache --update alpine-sdk make \
6874
&& cd /go/src/github.com/lightninglabs/lightning-terminal \

0 commit comments

Comments
 (0)