File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1818 pciutils && \
1919 rm -rf /var/lib/apt/lists/*
2020
21+ # Install the gcc-12 package in Ubuntu 22.04 as Kernels with versions 5.19.x and 6.5.x need gcc 12.3.0 for compilation
22+ RUN apt-get update && \
23+ apt-get install -y --no-install-recommends gcc-12 g++-12 && \
24+ update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 && \
25+ update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12 && \
26+ rm -rf /var/lib/apt/lists/*
27+
2128RUN echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main universe" > /etc/apt/sources.list && \
2229 echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main universe" >> /etc/apt/sources.list && \
2330 echo "deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-security main universe" >> /etc/apt/sources.list && \
You can’t perform that action at this time.
0 commit comments