19 lines
1.1 KiB
Plaintext
19 lines
1.1 KiB
Plaintext
|
FROM ubuntu:20.04
|
||
|
|
||
|
RUN apt-get update -yy && \
|
||
|
DEBIAN_FRONTEND=noninteractive apt-get install -yy autoconf automake gettext libgnutls28-dev make libtool libgcrypt20-dev libidn2-dev libmicrohttpd-dev libunistring-dev libgmp3-dev libcurl4-gnutls-dev libsodium-dev zlib1g-dev pkg-config libsqlite3-dev libjansson-dev && \
|
||
|
apt-get clean -yy
|
||
|
|
||
|
RUN useradd --system --home-dir /var/lib/gnunet --create-home gnunet && \
|
||
|
groupadd gnunetdns
|
||
|
|
||
|
ENV GNUNET_VERSION 0.14.0
|
||
|
|
||
|
RUN cd /usr/src && curl -LO https://ftpmirror.gnu.org/gnu/gnunet/gnunet-$GNUNET_VERSION.tar.gz && tar zxf gnunet-$GNUNET_VERSION.tar.gz && rm gnunet-$GNUNET_VERSION.tar.gz
|
||
|
RUN cd /usr/src/gnunet-$GNUNET_VERSION && \
|
||
|
./configure --disable-documentation --prefix=/usr --with-libidn2 --with-microhttpd --with-sqlite --with-zlib && \
|
||
|
make -j6 && \
|
||
|
make install && \
|
||
|
cp /usr/src/gnunet-$GNUNET_VERSION/src/gns/nss/.libs/* /usr/lib/x86_64-linux-gnu/
|
||
|
RUN cp /etc/nsswitch.conf /tmp/nsswitch.conf && sed '/^hosts:/s/ files / files gns [NOTFOUND=return] /' </tmp/nsswitch.conf >/etc/nsswitch.conf && rm /tmp/nsswitch.conf
|