Skip to content

Commit

Permalink
Statically build binary to fix libpthread issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrian Jardan committed Dec 27, 2017
1 parent 2d81d6e commit 55f8e41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM golang:1.9
WORKDIR /go/src/github.com/discordianfish/nginx_exporter
ENV GOOS=linux CGO_ENABLED=0
COPY . .
RUN go get -d && go build

Expand Down

0 comments on commit 55f8e41

Please sign in to comment.