Copy over /pkg to container (#110)

Signed-off-by: Risha Mars <mars@buoyant.io>
This commit is contained in:
Risha Mars 2018-01-05 10:12:29 -08:00 committed by GitHub
parent 67d4b56253
commit 80ecdc13c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
FROM gcr.io/runconduit/go-deps:e258aef9 as golang
WORKDIR /go/src/github.com/runconduit/conduit
COPY controller controller
COPY pkg pkg
# use `install` so that we produce multiple binaries
RUN CGO_ENABLED=0 GOOS=linux go install -a -installsuffix cgo ./controller/cmd/...

View File

@ -16,6 +16,7 @@ FROM gcr.io/runconduit/go-deps:e258aef9 as golang
WORKDIR /go/src/github.com/runconduit/conduit
COPY web web
COPY controller controller
COPY pkg pkg
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o web/web ./web
## package it all up