Dockerfile 481 Bytes
Newer Older
rna's avatar
rna committed
1
FROM gcc:8
2 3 4

MAINTAINER Andreas Schmidt <schmidt@nt.uni-saarland.de>

Andreas Schmidt's avatar
Andreas Schmidt committed
5 6 7 8 9 10 11
ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install --yes --force-yes \
    bc \
    cmake \
    traceroute \
    tshark
12 13 14 15

COPY CMakeLists.txt /prrt/
COPY prrt /prrt/prrt
COPY tests /prrt/tests
16
COPY docker/entrypoint.sh /
Andreas Schmidt's avatar
Andreas Schmidt committed
17
COPY docker/sysctl.conf /etc/sysctl.d/01-disable-ipv6.conf
18 19 20

WORKDIR /prrt

Andreas Schmidt's avatar
Andreas Schmidt committed
21
RUN cmake . \
22
    && make
Andreas Schmidt's avatar
Andreas Schmidt committed
23
ENV PATH /prrt:$PATH
24 25

VOLUME /output
26 27

ENTRYPOINT ["/entrypoint.sh"]