Docker image fails to build due to Error: pg_config executable not found. pg_config is required to build psycopg2 from source.
Quick solution is to change base image from python3.10-slim to python3.10 - it builds fine then.
Alternatively you can manually call apt as necessary in dockerfile to setup environment as necessary to install psycopg2
Docker image fails to build due to
Error: pg_config executable not found. pg_config is required to build psycopg2 from source.Quick solution is to change base image from
python3.10-slimtopython3.10- it builds fine then.Alternatively you can manually call
aptas necessary in dockerfile to setup environment as necessary to installpsycopg2