Fix how testhelper is built

This commit is contained in:
Finn Herzfeld 2018-12-05 12:33:47 -08:00
parent df73a27d8f
commit 1ab7e99492

View file

@ -1,7 +1,7 @@
FROM golang:latest as build FROM golang:latest as build
COPY testhelper.go /go/testhelper.go COPY testhelper.go /go/testhelper.go
RUN go get -u github.com/lib/pq RUN go get -u github.com/lib/pq
RUN go build testhelper.go RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build testhelper.go
FROM scratch FROM scratch
COPY --from=build /go/testhelper /testhelper COPY --from=build /go/testhelper /testhelper