Scott Baker | 31acc65 | 2016-06-23 15:47:56 -0700 | [diff] [blame] | 1 | FROM ubuntu:14.04.2 |
| 2 | MAINTAINER Andy Bavier <acb@cs.princeton.edu> |
| 3 | |
| 4 | # XXX Workaround for docker bug: |
| 5 | # https://github.com/docker/docker/issues/6345 |
| 6 | # Kernel 3.15 breaks docker, uss the line below as a workaround |
| 7 | # until there is a fix |
| 8 | RUN ln -s -f /bin/true /usr/bin/chfn |
| 9 | # XXX End workaround |
| 10 | |
| 11 | # Install. |
| 12 | RUN apt-get update && apt-get install -y \ |
| 13 | python-pip \ |
| 14 | python-dev |
| 15 | |
| 16 | RUN pip install Flask |
| 17 | RUN mkdir -p /usr/local/share/ |
| 18 | ADD sflow_pub_sub /usr/local/share/sflow_pub_sub |
| 19 | RUN chmod +x /usr/local/share/sflow_pub_sub/sflow_pub_sub_main.py |
| 20 | RUN chmod +x /usr/local/share/sflow_pub_sub/start_sflow_pub_sub |
| 21 | WORKDIR /usr/local/share/sflow_pub_sub/ |
| 22 | CMD /usr/local/share/sflow_pub_sub/start_sflow_pub_sub |