Skip to content

Commit 391223d

Browse files
jabbasGrzegorz Dzięgielewski
andauthored
changes gcc from gcc 13 to gcc-11 (#244)
Co-authored-by: Grzegorz Dzięgielewski <[email protected]>
1 parent 6c7d54f commit 391223d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
2929
apt-transport-https \
3030
curl \
3131
file \
32-
gcc \
32+
gcc-11 \
33+
g++-11 \
3334
git \
34-
g++ \
3535
gnupg2 \
36-
libc++1 \
3736
libgl1 \
3837
libtcmalloc-minimal4 \
3938
make \
@@ -56,7 +55,10 @@ RUN apt update -qq && apt install -qq -y --no-install-recommends \
5655
jq \
5756
shellcheck \
5857
&& gem install bundler \
59-
&& rm -rf /var/lib/apt/lists/*;
58+
&& rm -rf /var/lib/apt/lists/* \
59+
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 \
60+
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 110
61+
6062

6163
# install nodejs using n
6264
RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \

0 commit comments

Comments
 (0)