From 08e7d1d7924ceb87df8e314d9596236970e3cb25 Mon Sep 17 00:00:00 2001 From: Leopold Schabel Date: Fri, 31 Jan 2020 17:24:12 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a895251 --- /dev/null +++ b/Dockerfile @@ -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"]