Skip to content

Commit 5f51671

Browse files
authored
Merge pull request #66 from ZZiigguurraatt/dev_Dockerfile_CGO_ENABLED
dev.Dockerfile: add CGO_ENABLED build arg
2 parents a21e308 + 508f933 commit 5f51671

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)