2018-12-05 20:16:15 +00:00
|
|
|
FROM golang:latest as build
|
|
|
|
COPY testhelper.go /go/testhelper.go
|
|
|
|
RUN go get -u github.com/lib/pq
|
2018-12-05 20:03:40 +00:00
|
|
|
RUN go build testhelper.go
|
|
|
|
|
|
|
|
FROM scratch
|
2018-12-05 20:16:15 +00:00
|
|
|
COPY --from=build /go/testhelper /testhelper
|
2018-12-05 20:03:40 +00:00
|
|
|
ENTRYPOINT ["/testhelper"]
|