Dockerfile.build 339 B

12345678910111213141516171819202122
  1. #Should be called DIST generator
  2. FROM golang:1.8.1
  3. ADD . /buildme
  4. WORKDIR buildme
  5. ENV GOPATH=/buildme
  6. # DEPS
  7. RUN go get -v buildme/cmd/builder
  8. # CODE TEST
  9. # RUN go test something
  10. # BUILD
  11. RUN CGO_ENABLED=0 go build -o DIST/builder buildme/cmd/builder
  12. # ENV TEST
  13. # DIST
  14. RUN tar -cz DIST >dist.tar.gz
  15. # Generate img
  16. CMD cat dist.tar.gz