Fix a warning with getaddrinfo while compiling
add netgo to the build
This commit is contained in:
parent
c835df9fee
commit
cdd0ff7904
1 changed files with 2 additions and 2 deletions
|
@ -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"]
|
||||
ENTRYPOINT ["/goStatic"]
|
||||
|
|
Loading…
Reference in a new issue