Skip to content

chore: remove python3-pip during cleanup in Dockerfile - #527

Open
benispeti wants to merge 1 commit into
cloudnative-pg:mainfrom
benispeti:issue-524
Open

benispeti wants to merge 1 commit into
cloudnative-pg:mainfrom
benispeti:issue-524

Conversation

@benispeti

Copy link
Copy Markdown

Description

Three packages are installed to get barman-cloud built/installed: build-essential, python3-dev, and python3-pip (plus python3-psycopg2). After the pip3 install step completes, the cleanup line only removes build-essential and python3-dev. python3-pip is never removed.

Fixes #524

Fix
Add python3-pip to the removal step (and purge its now-unneeded dependents) once barman is installed

Attached the before/after SBOM reports showing impact on the installed packages.

syft-sbom-postgresql-17.11-system-trixie-after.txt
syft-sbom-postgresql-17.11-system-trixie-before.txt

@benispeti
benispeti requested a review from a team as a code owner October 11, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review unnecessary Python packaging tools in PostgreSQL image

1 participant