Dockerfile 746 Bytes
Newer Older
Kolbjørn Barmen's avatar
Kolbjørn Barmen committed
1
FROM debian:stretch
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
2
MAINTAINER Jørn Åne de Jong <jorn.dejong@uninett.no>
3 4 5 6 7 8 9

RUN \
  export DEBIAN_FRONTEND=noninteractive ; \
        apt-get update ; \
        apt-get install --no-install-recommends -q -y \
                -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y \
                        build-essential autoconf ruby ruby-dev libpcap-dev
Jørn Åne de Jong's avatar
Jørn Åne de Jong committed
10 11 12 13 14 15
RUN gem install fpm
ADD rude /usr/src/rude
WORKDIR /usr/src/rude
RUN autoheader autoconf/configure.in
RUN autoconf autoconf/configure.in > configure
RUN chmod 755 configure
16 17 18 19
RUN ./configure --enable-wall --with-debug-lvl=3 --prefix=/usr
RUN make deb
CMD tar c rude/rude*.deb crude/crude*.deb
# CMD tar c rude/rude{,.8} rude/rude*.deb crude/crude{,.8} crude/crude*.deb