Dockerfile fix

This commit is contained in:
terorie 2019-02-22 21:05:41 +01:00 committed by GitHub
parent 8478789b12
commit 6292ce27a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,13 @@
FROM golang:alpine as builder
ADD . /go/src/github.com/terorie/od-database-crawler
RUN apk add git && \
CGO_ENABLED=0 go install \
-d -v \
CGO_ENABLED=0 go install -v \
-a -installsuffix cgo \
-o /go/od-database-crawler \
github.com/terorie/od-database-crawler
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/od-database-crawler /bin/
COPY --from=builder /go/bin/od-database-crawler /bin/
WORKDIR /oddb
VOLUME [ "/oddb" ]
CMD ["/bin/od-database-crawler", "server"]