FROM golang:latest AS builder LABEL maintainer="Mike Crute " RUN set -eux; \ cd /tmp; \ go version; \ git clone https://github.com/SuperQ/smokeping_prober.git; \ cd smokeping_prober; \ CGO_ENABLED=0 go build -o smokeping_prober *.go FROM alpine:latest COPY --from=builder /tmp/smokeping_prober/smokeping_prober /smokeping_prober ENTRYPOINT [ "/smokeping_prober" ]