infrastructure/testhelper.Dockerfile

9 lines
248 B
Text
Raw Normal View History

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:33:47 +00:00
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build testhelper.go
FROM scratch
2018-12-05 20:16:15 +00:00
COPY --from=build /go/testhelper /testhelper
ENTRYPOINT ["/testhelper"]