Modernize Dockerfile to use the golang image

This commit is contained in:
Sridhar Ratnakumar 2015-06-28 20:19:59 -07:00
parent d88c762aa1
commit 4d381fccb0
1 changed files with 2 additions and 10 deletions

View File

@ -1,11 +1,4 @@
FROM ubuntu FROM golang
RUN apt-get -qy update
RUN apt-get -y install golang-go
RUN apt-get -y install git
RUN apt-get -y install mercurial subversion
ENV GOPATH $HOME/go
RUN mkdir -p $GOPATH/src/github.com/ActiveState/tail/ RUN mkdir -p $GOPATH/src/github.com/ActiveState/tail/
ADD . $GOPATH/src/github.com/ActiveState/tail/ ADD . $GOPATH/src/github.com/ActiveState/tail/
@ -17,11 +10,10 @@ RUN go get -v github.com/ActiveState/tail
RUN go test -v github.com/ActiveState/tail RUN go test -v github.com/ActiveState/tail
# expecting to install successfully # expecting to install successfully
RUN go install -v github.com/ActiveState/tail RUN go install -v github.com/ActiveState/tail
RUN go install -v github.com/ActiveState/tail/cmd/gotail RUN go install -v github.com/ActiveState/tail/cmd/gotail
RUN $GOPATH/bin/gotail -h || true RUN $GOPATH/bin/gotail -h || true
ENV PATH $GOPATH/bin:$PATH ENV PATH $GOPATH/bin:$PATH
CMD ["gotail"] CMD ["gotail"]