1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/passivedns/Dockerfile

44 lines
1.3 KiB
Docker
Raw Normal View History

2023-09-19 10:49:30 +02:00
#
# Dockerfile for passivedns
#
FROM debian:12
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt update -y \
&& apt install -y autoconf \
automake \
build-essential \
curl \
libjansson-dev \
libjansson4 \
libldns-dev \
libldns3 \
libpcap-dev \
libpcap0.8 \
libssl-dev \
libssl3 \
&& mkdir -p /opt/passivedns \
&& cd /opt/passivedns \
&& curl -sSL https://github.com/gamelinux/passivedns/archive/refs/heads/master.tar.gz | tar xz --strip 1 \
&& autoreconf --install && ./configure --prefix=/usr && make install \
&& cp etc/default/passivedns-debian /etc/default/passivedns \
&& cp etc/init.d/passivedns-debian /etc/init.d/passivedns \
&& cp etc/logrotate.d/passivedns /etc/logrotate.d/passivedns \
&& cd .. \
&& rm -rf /opt/passivedns \
&& apt remove -y autoconf \
automake \
build-essential \
curl \
libldns-dev \
libjansson-dev \
libpcap-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/* \
&& passivedns -V
ENTRYPOINT ["passivedns"]
CMD ["-h"]