Fix how testhelper is built
This commit is contained in:
parent
df73a27d8f
commit
1ab7e99492
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue