From df73a27d8fb07d11d0aabcec1ad1a233a8b5c2e5 Mon Sep 17 00:00:00 2001 From: Finn Herzfeld Date: Wed, 5 Dec 2018 12:16:15 -0800 Subject: [PATCH] Fix testhleper.Dockerfile --- testhelper.Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testhelper.Dockerfile b/testhelper.Dockerfile index 1d13b0a..f4a85ab 100644 --- a/testhelper.Dockerfile +++ b/testhelper.Dockerfile @@ -1,7 +1,8 @@ -FROM golang:latest -COPY testhelper.go / +FROM golang:latest as build +COPY testhelper.go /go/testhelper.go +RUN go get -u github.com/lib/pq RUN go build testhelper.go FROM scratch -COPY --from=build /testhelper /testhelper +COPY --from=build /go/testhelper /testhelper ENTRYPOINT ["/testhelper"]