solana_exporter/Dockerfile

14 lines
326 B
Docker
Raw Normal View History

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 /
ENTRYPOINT ["/app"]