File: Dockerfile

package info (click to toggle)
golang-github-hpcloud-tail 1.0.0%2Bgit20160415.b294095-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 188 kB
  • ctags: 143
  • sloc: makefile: 15
file content (19 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (5)
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/hpcloud/tail/
ADD . $GOPATH/src/github.com/hpcloud/tail/

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

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

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

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

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