Skip to content

Commit 508f933

Browse files
ZZiigguurraattZZiigguurraatt
authored andcommitted
dev.Dockerfile: add CGO_ENABLED build arg
1 parent a21e308 commit 508f933

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ ARG BASE_IMAGE_VERSION=v0.19.3-beta
44

55
FROM golang:${GO_VERSION}-alpine as builder
66

7+
# Allow defining the CGO_ENABLED variable so we can build binaries
8+
# that will work in a different type of container.
9+
ARG CGO_ENABLED=1
10+
711
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS
812
# queries required to connect to linked containers succeed.
913
ENV GODEBUG netdns=cgo

0 commit comments

Comments
 (0)