Skip to content

Commit

Permalink
Merge pull request #14 from aiomaster/master
Browse files Browse the repository at this point in the history
Fix a warning with getaddrinfo while compiling
  • Loading branch information
PierreZ authored Jul 13, 2018
2 parents c835df9 + cdd0ff7 commit 2a94360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 2a94360

Please sign in to comment.