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