From dfa8fefffe69d65f1aa118f3efb725e12ef02916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Mon, 12 Jun 2023 10:41:40 +0200 Subject: [PATCH] Change: Adjust docker image for Debian Bookworm Debian Bookworm is blocking system wide Python package installations by default. Adjust the Dockerfile to install gvm-tools correctly again. --- .docker/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 42d502e7..3d7acbeb 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -9,14 +9,13 @@ RUN apt-get update && \ gosu \ python3 \ python-is-python3 \ - python3-pip && \ + pipx && \ apt-get remove --purge --auto-remove -y && \ rm -rf /var/lib/apt/lists/* -RUN python -m pip install --upgrade pip && \ - python3 -m pip install poetry +RUN pipx install poetry -RUN rm -rf dist && poetry build -f wheel +RUN rm -rf dist && /root/.local/bin/poetry build -f wheel FROM debian:stable-slim @@ -40,7 +39,7 @@ RUN addgroup --gid 1001 --system gvm && \ COPY --from=builder /source/dist/* /gvm-tools/ COPY .docker/entrypoint.sh /usr/local/bin/entrypoint -RUN python3 -m pip install /gvm-tools/* +RUN python3 -m pip install --break-system-packages /gvm-tools/* RUN chown -R gvm:gvm /gvm-tools && \ chmod 755 /usr/local/bin/entrypoint