Last active
October 9, 2020 13:43
-
-
Save OlivierLDff/4c00ee1e5259c56efe9fe1e7f96fd8d0 to your computer and use it in GitHub Desktop.
Docker/Ubuntu14 : Update to gcc 7/8/9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:trusty | |
ARG GCC=9 | |
RUN apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:ubuntu-toolchain-r/test && \ | |
apt-get update && \ | |
apt-get -y install g++-${GCC} && \ | |
update-alternatives \ | |
--install /usr/bin/gcc gcc /usr/bin/gcc-${GCC} 60 \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-${GCC} \ | |
--slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-${GCC} \ | |
--slave /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-${GCC} \ | |
--slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-${GCC} && \ | |
update-alternatives --config gcc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment