ci: Fix debian build

This commit is contained in:
Corentin Le Molgat
2023-02-10 13:00:39 +01:00
parent 67ff825a36
commit 5385b3c7af
2 changed files with 2 additions and 14 deletions

View File

@@ -5,15 +5,9 @@ FROM debian:latest AS base
ENV PATH=/usr/local/bin:$PATH
RUN apt-get update -qq \
&& apt-get install -yq \
git wget libssl-dev build-essential \
git wget libssl-dev build-essential cmake \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install CMake 3.25.2
RUN wget -q "https://cmake.org/files/v3.25/cmake-3.25.2-linux-x86_64.sh" \
&& chmod a+x cmake-3.25.2-linux-x86_64.sh \
&& ./cmake-3.25.2-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.25.2-linux-x86_64.sh
CMD [ "/bin/bash" ]
FROM base AS swig

View File

@@ -5,16 +5,10 @@ FROM debian:latest AS base
ENV PATH=/usr/local/bin:$PATH
RUN apt-get update -qq \
&& apt-get install -yq \
git wget libssl-dev pkg-config build-essential \
git wget libssl-dev build-essential cmake \
autoconf libtool zlib1g-dev lsb-release \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install CMake 3.25.2
RUN wget -q "https://cmake.org/files/v3.25/cmake-3.25.2-linux-x86_64.sh" \
&& chmod a+x cmake-3.25.2-linux-x86_64.sh \
&& ./cmake-3.25.2-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.25.2-linux-x86_64.sh
CMD [ "/bin/bash" ]
FROM base AS swig