From 9fb635b76ab192b62c4c402a8a0e35ab83ef10e4 Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Fri, 13 Oct 2017 19:55:14 -0700
Subject: [PATCH] Switch to multi-stage docker build

---
 Dockerfile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 7fee17d..3da676e 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"]
-- 
GitLab