smokeping_prober-helm/Dockerfile
Mohammed Naser 8c302eaad8 Add Dockerfile to build static binary
Change-Id: Ie7d6945165338cf7c0a7a0ed0e43f33b7d80c518
2020-03-28 18:23:33 -04:00

9 lines
295 B
Docker

FROM golang:1.13 AS builder
RUN go get github.com/SuperQ/smokeping_prober
RUN cd /go/src/github.com/SuperQ/smokeping_prober && make build
FROM scratch
COPY --from=builder /go/src/github.com/SuperQ/smokeping_prober/smokeping_prober /smokeping_prober
EXPOSE 9374
ENTRYPOINT ["/smokeping_prober"]