Fix testhleper.Dockerfile

This commit is contained in:
Finn Herzfeld 2018-12-05 12:16:15 -08:00
parent ac5b78b752
commit df73a27d8f

View file

@ -1,7 +1,8 @@
FROM golang:latest FROM golang:latest as build
COPY testhelper.go / COPY testhelper.go /go/testhelper.go
RUN go get -u github.com/lib/pq
RUN go build testhelper.go RUN go build testhelper.go
FROM scratch FROM scratch
COPY --from=build /testhelper /testhelper COPY --from=build /go/testhelper /testhelper
ENTRYPOINT ["/testhelper"] ENTRYPOINT ["/testhelper"]