From 508f9337946354639d06e5e6e1dc4b0395df1559 Mon Sep 17 00:00:00 2001 From: ZZiigguurraatt Date: Tue, 30 Sep 2025 22:46:20 -0400 Subject: [PATCH] dev.Dockerfile: add CGO_ENABLED build arg --- dev.Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dev.Dockerfile b/dev.Dockerfile index ef605ac..1b7c2cc 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -4,6 +4,10 @@ ARG BASE_IMAGE_VERSION=v0.19.3-beta FROM golang:${GO_VERSION}-alpine as builder +# Allow defining the CGO_ENABLED variable so we can build binaries +# that will work in a different type of container. +ARG CGO_ENABLED=1 + # Force Go to use the cgo based DNS resolver. This is required to ensure DNS # queries required to connect to linked containers succeed. ENV GODEBUG netdns=cgo