tools/docker: jammy: update to using gcc-12

This commit is contained in:
Rudi Heitbaum 2023-06-04 05:01:04 +00:00
parent 3eaa66dd72
commit 224224e3fc

View File

@ -18,13 +18,17 @@ RUN adduser --disabled-password --gecos '' docker \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
wget bash bc gcc sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip unzip diffutils lzop make file \ wget bash bc gcc-12 sed patch patchutils tar bzip2 gzip xz-utils zstd perl gawk gperf zip \
g++ xfonts-utils xsltproc default-jre-headless python3 \ unzip diffutils lzop make file g++-12 xfonts-utils xsltproc default-jre-headless python3 \
libc6-dev libncurses5-dev \ libc6-dev libncurses5-dev libjson-perl libxml-parser-perl libparse-yapp-perl \
libjson-perl libxml-parser-perl libparse-yapp-perl \ golang-go git openssh-client \
golang-go \
git openssh-client \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 \
--slave /usr/bin/cpp cpp /usr/bin/cpp-12 \
--slave /usr/bin/g++ g++ /usr/bin/g++-12 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-12
RUN update-alternatives --config gcc
USER docker USER docker