mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-19 02:16:43 +00:00
12 lines
458 B
Docker
12 lines
458 B
Docker
FROM golang:alpine as builder
|
|
RUN apk add git && \
|
|
go get -d -v github.com/terorie/od-database-crawler
|
|
WORKDIR /go/src/github.com/terorie/od-database-crawler
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/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/
|
|
WORKDIR /oddb
|
|
VOLUME [ "/oddb" ]
|
|
CMD ["/bin/od-database-crawler", "server"] |