Skip to content

Commit

Permalink
ci: rework toolchain Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Dec 10, 2024
1 parent 8c9b212 commit 16393d6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions cmake/ci/docker/toolchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,22 @@ LABEL maintainer="[email protected]"
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq git wget libssl-dev build-essential \
ninja-build python3 python3-venv pkgconf libglib2.0-dev \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq \
git wget libssl-dev \
build-essential cmake ninja-build \
python3 python3-venv \
pkgconf libglib2.0-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD ["/usr/bin/bash"]

# Install CMake 3.21.3
RUN wget "https://cmake.org/files/v3.21/cmake-3.21.3-linux-x86_64.sh" \
&& chmod a+x cmake-3.21.3-linux-x86_64.sh \
&& ./cmake-3.21.3-linux-x86_64.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.21.3-linux-x86_64.sh

FROM env AS devel
WORKDIR /home/project
COPY . .

ARG TARGET
ENV TARGET ${TARGET:-unknown}
ENV TARGET=${TARGET:-unknown}

FROM devel AS build
RUN cmake -version
Expand Down

0 comments on commit 16393d6

Please sign in to comment.