1FROM ubuntu:18.04 2MAINTAINER Marco Poletti <poletti.marco@gmail.com> 3 4COPY common_install.sh common_cleanup.sh / 5 6RUN bash -x /common_install.sh 7RUN apt-get install -y --no-install-recommends curl 8 9# For the Bazel repository 10RUN curl https://bazel.build/bazel-release.pub.gpg | apt-key add - 11 12RUN echo 'deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8' >> /etc/apt/sources.list.d/bazel.list 13 14COPY ubuntu-18.04_custom.list /etc/apt/sources.list.d/ 15 16RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 17 18RUN apt-get update -qq 19 20RUN apt-get remove -y python3-pip 21RUN python3 -m easy_install pip 22 23RUN apt-get install -y --allow-unauthenticated --no-install-recommends \ 24 g++-8 \ 25 g++-7 \ 26 g++-6 \ 27 g++-5 \ 28 clang-3.9 \ 29 clang-4.0 \ 30 clang-5.0 \ 31 clang-6.0 \ 32 clang-7 \ 33 clang-8 \ 34 clang-9 \ 35 clang-10 \ 36 bazel \ 37 git \ 38 python3.8 \ 39 clang-tidy \ 40 clang-format 41 42RUN python3.8 -m easy_install pip 43 44RUN pip3 install absl-py 45RUN pip3 install bidict 46RUN pip3 install pytest 47RUN pip3 install pytest-xdist 48RUN pip3 install sh 49RUN pip3 install setuptools 50RUN pip3 install networkx 51RUN pip3 install wheel 52 53RUN bash -x /common_cleanup.sh 54