File: Dockerfile

package info (click to toggle)
python-getdns 1.0.0~b1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 448 kB
  • sloc: ansic: 3,538; python: 607; makefile: 130
file content (35 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (4)
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
29
30
31
32
33
34
35
FROM  python:2.7

RUN set -ex \
    && apt-get update
    && curl -fOSL "https://unbound.net/downloads/unbound-1.5.8.tar.gz" \
    && curl -fOSL "https://github.com/getdnsapi/getdns/archive/v0.9.0.tar.gz" \
    && mkdir -p /usr/src/unbound \
    && tar -xzC /usr/src/unbound --strip-components=1 -f unbound-1.5.8.tar.gz \
    && rm unbound-1.5.8.tar.gz \
    && mkdir /usr/src/libgetdns \
    && tar -xzC /usr/src/libgetdns --strip-components=1 -f v0.9.0.tar.gz \
    && apt-get -y install libidn11-dev \
    && apt-get -y install python-dev \
    && cd /usr/src/unbound \
    && ./configure \
    && make \
    && make install \
    && ldconfig \
    && cd /usr/src/libgetdns \
    && libtoolize -ci \
    && autoreconf -fi \
    && ./configure \
    && make \
    && make install \
    && ldconfig \
    && mkdir -p /etc/unbound \
    && unbound-anchor -a /etc/unbound/getdns-root.key \
    && cd /usr/src \
    && git clone https://github.com/getdnsapi/getdns-python-bindings.git \
    && cd /usr/src/getdns-python-bindings \
    && git checkout develop \
    && python setup.py build \
    && python setup.py install

CMD ["python2"]