From f8b756a8a0a4963f9979b75fc1592c9b07b042d0 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Sun, 26 May 2024 16:38:28 +0200 Subject: [PATCH] Fix building bookworm test image salt require timelib which require a compiler to build. --- images/debian_bookworm/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/images/debian_bookworm/Dockerfile b/images/debian_bookworm/Dockerfile index 33584c00..8fc65c15 100644 --- a/images/debian_bookworm/Dockerfile +++ b/images/debian_bookworm/Dockerfile @@ -66,7 +66,12 @@ RUN /v/bin/pip install -U pip RUN /v/bin/pip install 'requests==2.30.0' # install salt -RUN python3 -m pip install --break-system-packages --no-cache salt +ARG _BUILD_DEPS="gcc g++ libc6-dev python3-dev" +RUN apt update && apt install -y $_BUILD_DEPS && \ + python3 -m pip install --break-system-packages --no-cache salt && \ + apt -y purge $_BUILD_DEPS && \ + apt -y autoremove --purge && \ + rm -rf /var/lib/apt/lists/* ENV LANG fr_FR.ISO-8859-15 ENV LANGUAGE fr_FR