FROM golang:1.14 as build-env WORKDIR /go/src/app ADD . /go/src/app ENV PATH="$GOPATH/bin:$PATH" ENV GOBIN="$GOPATH/bin" RUN go env RUN go get -d -v ./... RUN go build -o /go/bin/faila2 ./... FROM gcr.io/distroless/base COPY --from=build-env /go/bin/faila2 / ENTRYPOINT ["/faila2"]