Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpolden/echoip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2019-03-29 22:38:43 +0300
committerMartin Polden <mpolden@mpolden.no>2019-03-29 22:38:43 +0300
commit3a91baab21f999553e2d29b867ec07279a90304a (patch)
tree3aa3f62204d44273c05da00ebc2b26f99238552c /Dockerfile
parent99f95561732661dc04323afe5275d53e1cfc3d82 (diff)
Build without cgo
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index eee3c56..711588b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,8 @@
FROM golang:1.12-stretch AS build
WORKDIR /go/src/github.com/mpolden/echoip
COPY . .
-ENV GO111MODULE=on
+# Must build without cgo because libc is unavailable in runtime image
+ENV GO111MODULE=on CGO_ENABLED=0
RUN make
# Run