Browse Source

init

master
Robin Thoni 6 years ago
commit
4f55a24e56
1 changed files with 57 additions and 0 deletions
  1. 57
    0
      Dockerfile

+ 57
- 0
Dockerfile View File

@@ -0,0 +1,57 @@
1
+FROM robinthoni/debian-multiarch:jessie
2
+
3
+MAINTAINER Robin Thoni <robin@rthoni.com>
4
+
5
+RUN apt-get update && \
6
+    apt-get install -y\
7
+      libpq5\
8
+      libboost-dev\
9
+      libboost-program-options-dev\
10
+      git\
11
+      make\
12
+      dh-autoreconf\
13
+      pkg-config\
14
+      gcc\
15
+      bison\
16
+      flex\
17
+      libssl-dev\
18
+      libpq-dev\
19
+      ragel\
20
+      && \
21
+    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
22
+
23
+RUN git clone https://github.com/PowerDNS/pdns &&\
24
+    cd pdns &&\
25
+    git checkout rel/auth-4.0.x
26
+
27
+RUN cd pdns &&\
28
+    ./bootstrap
29
+
30
+RUN cd pdns &&\
31
+    ./configure --with-modules="gpgsql"
32
+
33
+RUN cd pdns &&\
34
+    make
35
+
36
+RUN cd pdns &&\
37
+    make install
38
+
39
+RUN apt-get autoremove -y\
40
+      git\
41
+      make\
42
+      dh-autoreconf\
43
+      pkg-config\
44
+      gcc\
45
+      bison\
46
+      flex\
47
+      libssl-dev\
48
+      libpq-dev\
49
+      ragel\
50
+    &&\
51
+    rm -rf pdns
52
+
53
+RUN groupadd -r pdns --gid=999 && useradd -r -g pdns --uid=999 pdns
54
+
55
+RUN rm -rf /var/log/*
56
+
57
+EXPOSE 53/udp

Loading…
Cancel
Save