Skip to content

Commit

Permalink
Change: Adjust docker image for Debian Bookworm
Browse files Browse the repository at this point in the history
Debian Bookworm is blocking system wide Python package installations by
default. Adjust the Dockerfile to install gvm-tools correctly again.
  • Loading branch information
bjoernricks committed Jun 19, 2023
1 parent f2ba206 commit dfa8fef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit dfa8fef

Please sign in to comment.