diff --git a/Dockerfile b/Dockerfile index 7fee17d8e83a11d8284a84829bdaf30f5f7c8eb1..3da676e1cda07710a8cafd2750a32a220fe917bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,10 @@ +FROM golang:1.9 +WORKDIR /go/src/github.com/mccutchen/go-httpbin +COPY . . +RUN make deps +RUN make + FROM gcr.io/distroless/base -COPY go-httpbin /bin/go-httpbin +COPY --from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin /bin/go-httpbin EXPOSE 8080 CMD ["/bin/go-httpbin"]