You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
473 B

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