Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM ubuntu:18.04
  2. # Install the required build tools
  3. RUN apt update && apt install -y apt git autopoint automake texinfo gettext autoconf libtool libidn11-dev libunistring-dev gnutls-dev libgcrypt20 libgcrypt20-dev libjansson-dev libsqlite3-dev wget flex bison libglib2.0-dev libgmp3-dev libmicrohttpd-dev libglpk-dev libextractor-dev
  4. # Install gnurl from source at version gnurl-7.54.0
  5. WORKDIR /usr/src
  6. RUN git clone https://git.taler.net/gnurl.git --branch gnurl-7.57.0
  7. RUN cd /usr/src/gnurl && autoreconf -i && ./configure --prefix=/usr --disable-ntlm-wb && make install
  8. # Install libpbc
  9. WORKDIR /usr/src
  10. RUN wget https://crypto.stanford.edu/pbc/files/pbc-0.5.14.tar.gz && tar xvzpf pbc-0.5.14.tar.gz && cd /usr/src/pbc-0.5.14 && ./configure --prefix=/usr && make install
  11. # Install libbswabe
  12. WORKDIR /usr/src
  13. RUN git clone https://github.com/schanzen/libgabe.git && cd /usr/src/libgabe && ./configure --prefix=/usr && make install
  14. WORKDIR /usr/src
  15. RUN git clone git://gnunet.org/gnunet.git
  16. RUN cd /usr/src/gnunet && ./bootstrap && ./configure --enable-experimental --prefix=/usr && make && make install
  17. RUN addgroup gnunetdns && addgroup gnunet && adduser --system --home /var/lib/gnunet gnunet
  18. RUN chown gnunet:gnunet /var/lib/gnunet
  19. RUN echo '[arm]\nSTART_SYSTEM_SERVICES = YES\nSTART_USER_SERVICES = NO\n' > /etc/gnunet.conf
  20. ADD docker-entrypoint.sh .
  21. RUN rm -rf /usr/src/*
  22. #RUN apt remove gcc
  23. CMD ["sh", "docker-entrypoint.sh"]