12345678910111213141516171819 |
- FROM golang:1.8.1-alpine as builder
- RUN apk add --update make
- RUN apk add --update git
- ADD . /buildme
- WORKDIR /buildme
- ENV GOPATH=/buildme/deps:/buildme
- RUN go get buildme/cmd/builder
- RUN go build -o DIST/builder buildme/cmd/builder
- FROM alpine
- COPY --from=builder /buildme/DIST/builder /builder
- CMD ["/builder"]
- # Optimize goget
- #RUN go get github.com/docker/docker
|