Dockerfile 485 B

12345678910111213141516171819
  1. FROM golang
  2. RUN mkdir -p $GOPATH/src/github.com/hpcloud/tail/
  3. ADD . $GOPATH/src/github.com/hpcloud/tail/
  4. # expecting to fetch dependencies successfully.
  5. RUN go get -v github.com/hpcloud/tail
  6. # expecting to run the test successfully.
  7. RUN go test -v github.com/hpcloud/tail
  8. # expecting to install successfully
  9. RUN go install -v github.com/hpcloud/tail
  10. RUN go install -v github.com/hpcloud/tail/cmd/gotail
  11. RUN $GOPATH/bin/gotail -h || true
  12. ENV PATH $GOPATH/bin:$PATH
  13. CMD ["gotail"]