mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-19 18:36:43 +00:00
Pull src from local FS
This commit is contained in:
parent
01513f3e89
commit
8478789b12
@ -1,8 +1,11 @@
|
|||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
|
ADD . /go/src/github.com/terorie/od-database-crawler
|
||||||
RUN apk add git && \
|
RUN apk add git && \
|
||||||
go get -d -v github.com/terorie/od-database-crawler
|
CGO_ENABLED=0 go install \
|
||||||
WORKDIR /go/src/github.com/terorie/od-database-crawler
|
-d -v \
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /go/od-database-crawler .
|
-a -installsuffix cgo \
|
||||||
|
-o /go/od-database-crawler \
|
||||||
|
github.com/terorie/od-database-crawler
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user