Skip to content

Commit 86ba200

Browse files
committed
First poke at a Dockerfile for the Python bindings
1 parent 6a8bd30 commit 86ba200

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM python:2.7
2+
3+
RUN set -ex \
4+
&& apt-get update
5+
&& curl -fOSL "https://unbound.net/downloads/unbound-1.5.8.tar.gz" \
6+
&& curl -fOSL "https://github.com/getdnsapi/getdns/archive/v0.9.0.tar.gz" \
7+
&& mkdir -p /usr/src/unbound \
8+
&& tar -xzC /usr/src/unbound --strip-components=1 -f unbound-1.5.8.tar.gz \
9+
&& rm unbound-1.5.8.tar.gz \
10+
&& mkdir /usr/src/libgetdns \
11+
&& tar -xzC /usr/src/libgetdns --strip-components=1 -f v0.9.0.tar.gz \
12+
&& apt-get -y install libidn11-dev \
13+
&& apt-get -y install python-dev \
14+
&& cd /usr/src/unbound \
15+
&& ./configure \
16+
&& make \
17+
&& make install \
18+
&& ldconfig \
19+
&& cd /usr/src/libgetdns \
20+
&& libtoolize -ci \
21+
&& autoreconf -fi \
22+
&& ./configure \
23+
&& make \
24+
&& make install \
25+
&& ldconfig \
26+
&& mkdir -p /etc/unbound \
27+
&& unbound-anchor -a /etc/unbound/getdns-root.key \
28+
&& cd /usr/src \
29+
&& git clone https://github.com/getdnsapi/getdns-python-bindings.git \
30+
&& cd /usr/src/getdns-python-bindings \
31+
&& git checkout develop \
32+
&& python setup.py build \
33+
&& python setup.py install
34+
35+
CMD ["python2"]

0 commit comments

Comments
 (0)