github.com/nxadm/tail@v1.4.12-0.20231010141446-ba755e4d73b6/Dockerfile (about) 1 FROM golang 2 3 RUN mkdir -p $GOPATH/src/github.com/nxadm/tail/ 4 ADD . $GOPATH/src/github.com/nxadm/tail/ 5 6 # expecting to fetch dependencies successfully. 7 RUN go get -v github.com/nxadm/tail 8 9 # expecting to run the test successfully. 10 RUN go test -v github.com/nxadm/tail 11 12 # expecting to install successfully 13 RUN go install -v github.com/nxadm/tail 14 RUN go install -v github.com/nxadm/tail/cmd/gotail 15 16 RUN $GOPATH/bin/gotail -h || true 17 18 ENV PATH $GOPATH/bin:$PATH 19 CMD ["gotail"]