FROM golang:alpine AS builder ADD . /go/src RUN cd /go/src; go build -o sleeper FROM alpine COPY --from=builder /go/src/sleeper /sleeper CMD ["/sleeper"]