File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:stable
1
+ FROM debian:stable-slim
2
2
3
3
SHELL ["/bin/bash" , "-c" ]
4
4
@@ -28,7 +28,8 @@ WORKDIR /root
28
28
29
29
# Build and install gcc snapshot
30
30
ARG GCC_SNAPSHOT_MAJOR=14
31
- RUN wget --progress=dot:giga --https-only --recursive --accept '*.tar.xz' --level 1 --no-directories "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}" && \
31
+ RUN mkdir gcc && cd gcc && \
32
+ wget --progress=dot:giga --https-only --recursive --accept '*.tar.xz' --level 1 --no-directories "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}" && \
32
33
wget "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}/sha512.sum" && \
33
34
sha512sum --check --ignore-missing sha512.sum && \
34
35
# We should have downloaded exactly one tar.xz file
@@ -40,6 +41,9 @@ RUN wget --progress=dot:giga --https-only --recursive --accept '*.tar.xz' --leve
40
41
../*/configure --prefix=/opt/gcc-snapshot --enable-languages=c --disable-bootstrap --disable-multilib --without-isl && \
41
42
make -j $(nproc) && \
42
43
make install && \
44
+ apt-get autoremove -y libgmp-dev libmpfr-dev libmpc-dev flex && \
45
+ apt-get clean && \
46
+ cd ../.. && rm -rf gcc && \
43
47
ln -s /opt/gcc-snapshot/bin/gcc /usr/bin/gcc-snapshot
44
48
45
49
# Install clang snapshot
You can’t perform that action at this time.
0 commit comments