Add Dockerfile
This commit is contained in:
parent
6418a7d90a
commit
08e7d1d792
|
@ -0,0 +1,13 @@
|
|||
FROM golang:1.13 as builder
|
||||
|
||||
COPY . /opt
|
||||
WORKDIR /opt
|
||||
|
||||
RUN go build -o /opt/bin/app github.com/certusone/solana_exporter/cmd/solana_exporter
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
||||
COPY --from=builder /opt/bin/app /
|
||||
|
||||
CMD ["/app"]
|
Loading…
Reference in New Issue