RUN apt update
# Install 'add-apt-repository'
-RUN apt-get install -y software-properties-common
+RUN apt install -y software-properties-common
# Add CMake 3.2 PPA
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x
+RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test
RUN apt update
# Install base dependencies
-RUN apt install -y make cmake g++
+RUN apt install -y make cmake
+
+# Update gcc version
+RUN apt install -y gcc-5 g++-5
+RUN update-alternatives \
+ --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 \
+ --slave /usr/bin/g++ g++ /usr/bin/g++-5
+RUN update-alternatives --config gcc
# Install google test (source)
RUN apt install -y libgtest-dev