mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-20 19:06:46 +00:00
11 lines
440 B
Docker
11 lines
440 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 /go/
|
|
VOLUME [ "/go" ]
|
|
CMD ["/go/od-database-crawler", "server"] |