Version 1.8.* Update Dockerfile: libpq-dev version to supported version #10393
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.
libpq-dev=13.14-0+deb11u1 -> libpq-dev=13.15-0+deb11u1
The image is currently in a broken state
The following packages have unmet dependencies:
libpq-dev : Depends: libpq5 (= 13.14-0+deb11u1) but 13.15-0+deb11u1 is to be installed Unable to correct problems, you have held broken packages.
Problem
Docker build is currently failing due to dependency issue. There is a specified version that is no longer supported of libpq-dev=13.14-0+deb11u1. This causes the build to fail and is unable to resolve and upgrade
docker build --tag dbt-build-image-local --target dbt-third-party --build-arg dbt_third_party=dbt-redshift==1.8.1 --build-arg commit_ref=v1.8.3 https://raw.githubusercontent.com/dbt-labs/dbt-core/v1.8.3/docker/Dockerfile
Solution
upgrade libpq-dev to 13.15-0+deb11u1 & the issue is resolved for building the docker image
Checklist