-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (20 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
28 lines (20 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM python:2.7
WORKDIR /crawler
COPY requirements.txt /crawler/requirements.txt
RUN pip install -r requirements.txt
COPY \
dependencies/python-socket-datacollector_0.1.4-1_all.deb \
dependencies/softflowd_0.9.9902-1_amd64.deb \
dependencies/python-conntrackprobe_0.2.1-1_all.deb \
/tmp/
RUN dpkg -i /tmp/python-socket-datacollector_*_all.deb && \
apt-get -y update && \
apt-get -y install libpcap0.8 && \
dpkg -i /tmp/softflowd_0.9.*_amd64.deb && \
pip install pyroute2 py-radix requests-unixsocket json-rpc && \
dpkg -i /tmp/python-conntrackprobe_*_all.deb && \
rm -f /tmp/*.deb
RUN apt-get upgrade -y
ENV PYTHONPATH=/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/site-packages
ADD crawler /crawler
ENTRYPOINT [ "python2.7", "crawler.py" ]