Skip to content

Commit f8b756a

Browse files
committed
Fix building bookworm test image
salt require timelib which require a compiler to build.
1 parent 54f3b5c commit f8b756a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

images/debian_bookworm/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ RUN /v/bin/pip install -U pip
6666
RUN /v/bin/pip install 'requests==2.30.0'
6767

6868
# install salt
69-
RUN python3 -m pip install --break-system-packages --no-cache salt
69+
ARG _BUILD_DEPS="gcc g++ libc6-dev python3-dev"
70+
RUN apt update && apt install -y $_BUILD_DEPS && \
71+
python3 -m pip install --break-system-packages --no-cache salt && \
72+
apt -y purge $_BUILD_DEPS && \
73+
apt -y autoremove --purge && \
74+
rm -rf /var/lib/apt/lists/*
7075

7176
ENV LANG fr_FR.ISO-8859-15
7277
ENV LANGUAGE fr_FR

0 commit comments

Comments
 (0)