diff --git a/Dockerfile b/Dockerfile index 7dcbc20..29e7d1d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,10 @@ FROM golang:alpine as builder ADD . /go/src/github.com/terorie/od-database-crawler RUN apk add git \ && go get -d -v github.com/terorie/od-database-crawler \ - && CGO_ENABLED=0 go install -a -installsuffix cgo github.com/terorie/od-database-crawler + && CGO_ENABLED=0 go install -a \ + -installsuffix cgo \ + -ldflags="-s -w" \ + github.com/terorie/od-database-crawler FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/