Modernize Dockerfile to use the golang image
This commit is contained in:
parent
d88c762aa1
commit
4d381fccb0
10
Dockerfile
10
Dockerfile
|
@ -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/
|
||||||
|
@ -24,4 +17,3 @@ RUN $GOPATH/bin/gotail -h || true
|
||||||
|
|
||||||
ENV PATH $GOPATH/bin:$PATH
|
ENV PATH $GOPATH/bin:$PATH
|
||||||
CMD ["gotail"]
|
CMD ["gotail"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue