12345678910111213141516171819202122 |
- #Should be called DIST generator
- FROM golang:1.8.1
- ADD . /buildme
- WORKDIR buildme
- ENV GOPATH=/buildme
- # DEPS
- RUN go get -v buildme/cmd/builder
- # CODE TEST
- # RUN go test something
- # BUILD
- RUN CGO_ENABLED=0 go build -o DIST/builder buildme/cmd/builder
- # ENV TEST
- # DIST
- RUN tar -cz DIST >dist.tar.gz
- # Generate img
- CMD cat dist.tar.gz
|