diff --git a/dev.Dockerfile b/dev.Dockerfile index 9bb836b8a..926deee54 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -41,6 +41,12 @@ ARG TAPRPC_VERSION # Need to restate this since running in a new container from above. ARG NO_UI +# Allow defining the CGO_ENABLED variable so we can build binaries +# that will work in a different type of container. +# `go` assumes `CGO_ENABLED=1` if not defined, but we make it explicit here +# to be more clear of the default value. +ARG CGO_ENABLED=1 + # Install dependencies and install/build lightning-terminal. RUN apk add --no-cache --update alpine-sdk make \ && cd /go/src/github.com/lightninglabs/lightning-terminal \