- FROM golang:1.8
- ADD src/sampleapp $GOPATH/src/sampleapp
- WORKDIR $GOPATH
- RUN go get sampleapp/cmd/server
- RUN go test sampleapp/customersvc
- RUN go test sampleapp
- RUN CGO_ENABLED=0 go build -o bin/sampleapp sampleapp/cmd/server
- CMD tar -czf - bin/sampleapp
|