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"]