Add Dockerfile

This commit is contained in:
Leopold Schabel 2020-01-31 17:24:12 +01:00
parent 6418a7d90a
commit 08e7d1d792
1 changed files with 13 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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"]