From 83b4a61dbd07351f53d324a8931023ea7c913cad Mon Sep 17 00:00:00 2001 From: Will McCutchen <will@mccutch.org> Date: Thu, 16 Apr 2020 12:06:39 -0700 Subject: [PATCH] docker: add test binary to final image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b75fd4a..b27e98d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,9 @@ COPY Makefile . RUN make deps COPY . . -RUN make +RUN make build buildtests FROM gcr.io/distroless/base -COPY --from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin /bin/go-httpbin +COPY --from=0 /go/src/github.com/mccutchen/go-httpbin/dist/go-httpbin* /bin/ EXPOSE 8080 CMD ["/bin/go-httpbin"] -- GitLab