support c++20 for ubuntu2204.
All checks were successful
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 44s

This commit is contained in:
luocai 2024-11-20 18:04:14 +08:00
parent 88e091cbb4
commit 06c399c472

View File

@ -54,6 +54,10 @@ RUN cd /root \
&& apt install -y software-properties-common \
&& add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& apt install -y gcc-13 g++-13 gdb \
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60 \
&& update-alternatives --config gcc \
&& update-alternatives --config g++ \
&& apt clean \
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*