summaryrefslogtreecommitdiff
path: root/vendor/github.com/nxadm/tail/Dockerfile
blob: d9633891c002877edd03ec1b96d1071409d5f2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM golang

RUN mkdir -p $GOPATH/src/github.com/nxadm/tail/
ADD . $GOPATH/src/github.com/nxadm/tail/

# expecting to fetch dependencies successfully.
RUN go get -v github.com/nxadm/tail

# expecting to run the test successfully.
RUN go test -v github.com/nxadm/tail

# expecting to install successfully
RUN go install -v github.com/nxadm/tail
RUN go install -v github.com/nxadm/tail/cmd/gotail

RUN $GOPATH/bin/gotail -h || true

ENV PATH $GOPATH/bin:$PATH
CMD ["gotail"]