diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e1369e2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.12 AS builder + +WORKDIR $GOPATH/src/github.com/GoogleCloudPlatform/govanityurls +COPY . . +RUN go get -v . + +FROM gcr.io/distroless/base +COPY --from=builder /go/bin/govanityurls /go/bin/ +WORKDIR /app/ +ENTRYPOINT [ "/go/bin/govanityurls" ]