FROM golang:1.11 as build ENV GO111MODULE=on RUN mkdir -p /go/src/go.uber.org/sally WORKDIR /go/src/go.uber.org/sally ADD . /go/src/go.uber.org/sally/ RUN go mod vendor RUN make grumps-build && ls -la /go/src/go.uber.org/sally/_tmp/sally FROM scratch EXPOSE 8080 COPY sally.yaml / COPY --from=build /go/src/go.uber.org/sally/_tmp/sally /sally ENTRYPOINT ["/sally"]