2024-06-12 13:59:37 -07:00
|
|
|
FROM golang:1.22 as builder
|
2020-01-31 08:24:12 -08:00
|
|
|
|
|
|
|
COPY . /opt
|
|
|
|
WORKDIR /opt
|
|
|
|
|
2024-10-10 09:30:52 -07:00
|
|
|
RUN CGO_ENABLED=0 go build -o /opt/bin/app github.com/asymmetric-research/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"]
|