Skip to content

Commit

Permalink
installing postgresql-devel before installing poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrsenkow committed Jan 15, 2025
1 parent 3ab090f commit c0ccb5f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c0ccb5f

Please sign in to comment.