From 36353b1bfa0b79d94ec72be4c20540c707f35d49 Mon Sep 17 00:00:00 2001 From: korbin Date: Fri, 26 Apr 2019 14:26:42 -0600 Subject: [PATCH] Set CGO_ENABLED=0 in Dockerfile for fully-static builds --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 097e54c..cd17b05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,7 @@ WORKDIR /go/src/github.com/jwilder/dockerize RUN go get github.com/robfig/glock RUN glock sync -n < GLOCKFILE +ENV CGO_ENABLED 0 RUN go install FROM alpine:3.6