add libpq-dev for pg_config executable

This commit is contained in:
burnettk 2022-12-22 21:02:06 -05:00
parent 93de3d8f4e
commit 8e50307641
1 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,14 @@ FROM ghcr.io/sartography/python:3.11
RUN pip install poetry
RUN useradd _gunicorn --no-create-home --user-group
# postgresql-client is required to poetry install (psycopg2)
# libpq-dev for pg_config executable, which is needed for psycopg2
RUN set -xe \
&& apt-get update -q \
&& apt-get install -y -q \
libpq-dev
# remove packages that are not needed in production.
# just for security. won't help image size.
RUN set -xe \
&& apt-get remove -y \
gcc \