FROM golang:1.13.5 AS builder RUN go get -d -v git.alfi.li/gamelang/systems/worldmanager/daemon WORKDIR $GOPATH/src/git.alfi.li/gamelang/systems/worldmanager/daemon RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o /daemon . FROM scratch COPY --from=builder /daemon . CMD ["/daemon"]