Fix testhleper.Dockerfile
This commit is contained in:
parent
ac5b78b752
commit
df73a27d8f
1 changed files with 4 additions and 3 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue