fix: Propagate CGO_ENABLED environment variable to docker build (#724)
* fix: Add ability to statically compile binaries * propagate env var from github action * fix comment
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
FROM golang:1.22-bullseye AS build
|
||||
|
||||
# Set default build argument for CGO_ENABLED
|
||||
ARG CGO_ENABLED=0
|
||||
ENV CGO_ENABLED ${CGO_ENABLED}
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
RUN git config --global --add safe.directory /build
|
||||
|
||||
Reference in New Issue
Block a user