2626RUN <<EOF
2727pkgs=()
2828pkgs+=(ca-certificates) # Enable TLS verification for HTTPS connections by providing trusted root certificates.
29- pkgs+=(cmake) # Required build tool.
3029pkgs+=(curl) # Dependency for tools requiring downloading data.
3130pkgs+=(dpkg-dev) # Required packaging tool.
3231pkgs+=(file) # Required packaging tool.
@@ -36,8 +35,8 @@ pkgs+=(gpg-agent) # Dependency for tools requiring signing or encrypting/d
3635pkgs+=(jq) # JSON manipulation.
3736pkgs+=(libc6-dev) # Required build tool.
3837pkgs+=(ninja-build) # Required build tool.
39- pkgs+=(pipx ) # Package manager for Python applications .
40- pkgs+=(python3-jinja2 ) # Required build tool .
38+ pkgs+=(python3-venv ) # Python environment management tool .
39+ pkgs+=(python3-pip ) # Package manager for Python applications .
4140pkgs+=(vim) # Text editor.
4241pkgs+=(wget) # Required build tool.
4342apt-get update
@@ -46,14 +45,18 @@ apt-get clean
4645rm -rf /var/lib/apt/lists/*
4746EOF
4847
49- # Install Python-based tools.
48+ # Install Python-based tools and cmake .
5049ARG CONAN_VERSION
5150ARG GCOVR_VERSION
52- ENV PIPX_HOME=/opt/pipx \
53- PIPX_BIN_DIR=/usr/bin \
54- PIPX_MAN_DIR=/usr/share/man
55- RUN pipx install --pip-args='--no-cache' conan==${CONAN_VERSION} && \
56- pipx install --pip-args='--no-cache' gcovr==${GCOVR_VERSION}
51+ ARG CMAKE_VERSION
52+
53+ ENV VIRTUAL_ENV=/opt/venv
54+ RUN python3 -m venv ${VIRTUAL_ENV}
55+ ENV PATH=${VIRTUAL_ENV}/bin:${PATH}
56+ RUN pip install --no-cache \
57+ conan==${CONAN_VERSION} \
58+ gcovr==${GCOVR_VERSION} \
59+ cmake==${CMAKE_VERSION}
5760
5861# ====================== GCC IMAGE ======================
5962FROM base AS gcc
0 commit comments