8 lines
248 B
Docker
8 lines
248 B
Docker
FROM golang:latest as build
|
|
COPY testhelper.go /go/testhelper.go
|
|
RUN go get -u github.com/lib/pq
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build testhelper.go
|
|
|
|
FROM scratch
|
|
COPY --from=build /go/testhelper /testhelper
|
|
ENTRYPOINT ["/testhelper"]
|