2021-01-03 16:10:09 -08:00
|
|
|
FROM golang:1.15 as builder
|
2020-01-31 08:24:12 -08:00
|
|
|
|
|
|
|
COPY . /opt
|
|
|
|
WORKDIR /opt
|
|
|
|
|
2020-02-04 13:39:59 -08:00
|
|
|
RUN CGO_ENABLED=0 go build -o /opt/bin/app github.com/certusone/solana_exporter/cmd/solana_exporter
|
2020-01-31 08:24:12 -08:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
|
|
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
|
|
COPY --from=builder /opt/bin/app /
|
|
|
|
|
2021-01-03 16:10:09 -08:00
|
|
|
ENTRYPOINT ["/app"]
|