From c0ccb5fadb6818c58a78c6ef4e8d09902b1b098d Mon Sep 17 00:00:00 2001 From: Piotr Senkow Date: Wed, 15 Jan 2025 14:08:05 -0600 Subject: [PATCH] installing postgresql-devel before installing poetry --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c4fce0d4..36e2a522 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,10 @@ FROM base # Copy poetry artifacts and install the dependencies # This will ensure dependencies are cached COPY poetry.lock pyproject.toml /$appname/ -RUN poetry config virtualenvs.create false \ - && poetry install -vv --no-root --without dev --no-interaction \ - && poetry show -v +RUN dnf install -y postgresql-devel gcc && \ + poetry config virtualenvs.create false && \ + poetry install -vv --no-root --without dev --no-interaction && \ + poetry show -v # Install PostgreSQL libraries RUN dnf install -y postgresql-libs