Skip to content
Snippets Groups Projects
Commit 9fb635b7 authored by Will McCutchen's avatar Will McCutchen
Browse files

Switch to multi-stage docker build

parent 73a9e81f
No related branches found
No related tags found
No related merge requests found
FROM golang:1.9
WORKDIR /go/src/github.com/mccutchen/go-httpbin
COPY . .
RUN make deps
RUN make
FROM gcr.io/distroless/base 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 EXPOSE 8080
CMD ["/bin/go-httpbin"] CMD ["/bin/go-httpbin"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment