go: use dep in builds, remove relative imports
Fixes #11. Fixes #12. Fixes #13. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
c7dd0cbf31
commit
427f13fcd3
36 changed files with 737 additions and 125 deletions
|
@ -1,8 +1,12 @@
|
|||
# cartservice_probe
|
||||
FROM golang:1.10 as builder
|
||||
WORKDIR /src/microservices-demo/cartservice/probe
|
||||
COPY probe/ .
|
||||
RUN go get -d ./...
|
||||
RUN wget -qO/go/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 && \
|
||||
chmod +x /go/bin/dep
|
||||
ENV PROJECT github.com/GoogleCloudPlatform/microservices-demo/src/cartservice/probe
|
||||
WORKDIR /go/src/$PROJECT
|
||||
COPY probe/Gopkg.* ./
|
||||
RUN dep ensure --vendor-only -v
|
||||
COPY ./probe ./
|
||||
RUN go build -o /cartservice_probe .
|
||||
|
||||
# cartservice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue