mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-24 12:55:51 +00:00
Dockerfile fix
This commit is contained in:
parent
8478789b12
commit
6292ce27a3
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user