Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image fails to build due to psycopg2 build failure. #2090

Open
deafmute1 opened this issue Mar 18, 2024 · 0 comments · May be fixed by #2102
Open

Docker image fails to build due to psycopg2 build failure. #2090

deafmute1 opened this issue Mar 18, 2024 · 0 comments · May be fixed by #2102

Comments

@deafmute1
Copy link

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

badchoices added a commit to badchoices/OnlyFans that referenced this issue Jun 7, 2024
@badchoices badchoices linked a pull request Jun 7, 2024 that will close this issue
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 a pull request may close this issue.

1 participant