blob: 9cdb0a671a360fc6ec638eb87df6dca3ecde28d3 [file] [log] [blame]
gunjan56e19d272016-07-07 14:23:26 -07001FROM ubuntu:14.04
2
3RUN apt-get update && apt-get install --no-install-recommends -y \
4 ca-certificates \
5 curl \
6 mercurial \
7 git-core
8RUN curl -s https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz | tar -v -C /usr/local -xz
9
10ENV GOPATH /go
11ENV GOROOT /usr/local/go
12ENV PATH /usr/local/go/bin:/go/bin:/usr/local/bin:$PATH
13
14WORKDIR /app
15
16# copy binary into image
17COPY app /app/
18COPY hosts.tpl /app/
19COPY links.tpl /app/
20COPY ports.tpl /app/
21COPY devices.tpl /app/
22
23VOLUME /app
24
25
26# ENTRYPOINT ["./app"]