ci: Remove GCC build files and sage to reduce size of Docker image
This commit is contained in:
parent
6b9507adf6
commit
ad3e65d9fe
@ -1,4 +1,4 @@
|
|||||||
FROM debian:stable
|
FROM debian:stable-slim
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-c"]
|
SHELL ["/bin/bash", "-c"]
|
||||||
|
|
||||||
@ -28,7 +28,8 @@ WORKDIR /root
|
|||||||
|
|
||||||
# Build and install gcc snapshot
|
# Build and install gcc snapshot
|
||||||
ARG GCC_SNAPSHOT_MAJOR=14
|
ARG GCC_SNAPSHOT_MAJOR=14
|
||||||
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}" && \
|
RUN mkdir gcc && cd gcc && \
|
||||||
|
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}" && \
|
||||||
wget "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}/sha512.sum" && \
|
wget "https://gcc.gnu.org/pub/gcc/snapshots/LATEST-${GCC_SNAPSHOT_MAJOR}/sha512.sum" && \
|
||||||
sha512sum --check --ignore-missing sha512.sum && \
|
sha512sum --check --ignore-missing sha512.sum && \
|
||||||
# We should have downloaded exactly one tar.xz file
|
# 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
|
|||||||
../*/configure --prefix=/opt/gcc-snapshot --enable-languages=c --disable-bootstrap --disable-multilib --without-isl && \
|
../*/configure --prefix=/opt/gcc-snapshot --enable-languages=c --disable-bootstrap --disable-multilib --without-isl && \
|
||||||
make -j $(nproc) && \
|
make -j $(nproc) && \
|
||||||
make install && \
|
make install && \
|
||||||
|
apt-get autoremove -y libgmp-dev libmpfr-dev libmpc-dev flex && \
|
||||||
|
apt-get clean && \
|
||||||
|
cd ../.. && rm -rf gcc && \
|
||||||
ln -s /opt/gcc-snapshot/bin/gcc /usr/bin/gcc-snapshot
|
ln -s /opt/gcc-snapshot/bin/gcc /usr/bin/gcc-snapshot
|
||||||
|
|
||||||
# Install clang snapshot
|
# Install clang snapshot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user