refactor: fix outdated dependencies and deprecated apt-key usage in d… #6769
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a ...
Motivation
Description
This PR addresses critical issues in the Dockerfile to improve security, compatibility, and maintainability:
Removed invalid PostgreSQL client version 17 (unsupported, replaced with valid v16).
Replaced deprecated apt-key with modern keyring handling for PostgreSQL repository authentication.
Set BEFORE_PACK_NOCOBASE to a no-op default to avoid unnecessary file listing.
Impact:
Ensures compatibility with PostgreSQL 16.
Aligns with Debian best practices for secure package management.
Streamlines the build process.
Testing:
Verified Docker build completes successfully.
Confirmed PostgreSQL client installation works as expected.
This PR resolves immediate technical debt without disrupting existing workflows.
Related issues
Showcase
Changelog
Docs
Checklists