diff --git a/Dockerfile b/Dockerfile index 731258e..7dcbc20 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ FROM golang:alpine as builder ADD . /go/src/github.com/terorie/od-database-crawler -RUN apk add git && \ - CGO_ENABLED=0 go install -v \ - -a -installsuffix cgo \ - 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 FROM scratch COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/