Dockerfile.build3 425 B

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