FROM ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get install -y \ g++ \ python3 \ python3-dev \ python3-setuptools \ git \ mercurial \ qt5-default \ bison \ flex \ gir1.2-goocanvas-2.0 \ python3-gi \ python3-pygraphviz \ python3-gi-cairo \ python3-pybind11 \ gnuplot \ python3-scipy \ python3-numpy \ libc6-dev \ libxml2 \ libxml2-dev \ cmake \ libc6-dev \ libgtk2.0-0 \ libgtk2.0-dev \ vtun \ lxc \ wget \ && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /ns3 RUN wget https://www.nsnam.org/release/ns-allinone-3.35.tar.bz2 \ && tar -xjf ns-allinone-3.35.tar.bz2 \ && rm ns-allinone-3.35.tar.bz2 RUN cd ns-allinone-3.35/ns-3.35 \ && ./waf configure --enable-examples --enable-tests \ && ./waf ENV NS3_PATH=/ns3/ns-allinone-3.35/ns-3.35 ENV PATH=${NS3_PATH}:${PATH} CMD ["/bin/bash"]