mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-10 05:56:42 +00:00
Reduce Docker image size
This commit is contained in:
parent
8947e05d0c
commit
da9c75e392
@ -2,7 +2,10 @@ FROM golang:alpine as builder
|
|||||||
ADD . /go/src/github.com/terorie/od-database-crawler
|
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 \
|
&& go get -d -v github.com/terorie/od-database-crawler \
|
||||||
&& CGO_ENABLED=0 go install -a -installsuffix cgo github.com/terorie/od-database-crawler
|
&& CGO_ENABLED=0 go install -a \
|
||||||
|
-installsuffix cgo \
|
||||||
|
-ldflags="-s -w" \
|
||||||
|
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