From cdd0ff79044f9734c67a6a79140ea79c9f5f3c3d Mon Sep 17 00:00:00 2001 From: Christoph Wagner Date: Sun, 6 May 2018 00:16:54 +0200 Subject: [PATCH] Fix a warning with getaddrinfo while compiling add netgo to the build --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d55953..6af60b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,10 @@ FROM golang:latest as builder WORKDIR /go/src/github.com/PierreZ/goStatic COPY . . -RUN GOARCH=amd64 GOOS=linux go build -ldflags "-linkmode external -extldflags -static -w" +RUN GOARCH=amd64 GOOS=linux go build -tags netgo -installsuffix netgo -ldflags "-linkmode external -extldflags -static -w" # stage 1 FROM centurylink/ca-certs WORKDIR / COPY --from=builder /go/src/github.com/PierreZ/goStatic/goStatic . -ENTRYPOINT ["/goStatic"] \ No newline at end of file +ENTRYPOINT ["/goStatic"]