Skip to content

Commit

Permalink
setting psycopg2-binary = ">=2.8.2,<2.9.0" in pyproject.toml and tryi…
Browse files Browse the repository at this point in the history
…ng to install via yum slightly differently
  • Loading branch information
piotrsenkow committed Jan 16, 2025
1 parent ddef5ba commit 10a6825
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ RUN chown -R gen3:gen3 /${appname}
# Builder stage
FROM base AS builder

RUN yum install -y python3-devel postgresql-devel gcc libpq-devel && \
RUN yum install -y \
gcc \
python3-devel \
postgresql-devel \
libpq-devel && \
yum clean all

USER gen3
Expand All @@ -28,7 +32,11 @@ RUN git config --global --add safe.directory /${appname} && COMMIT=`git rev-pars
FROM base

# Install runtime dependencies
RUN yum install -y python3-devel libpq-devel && \
RUN yum install -y \
gcc \
python3-devel \
postgresql-devel \
libpq-devel && \
yum clean all

# Copy poetry artifacts and install the dependencies
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gen3authz = ">=1.0.4"
graphene = ">=2.0.1"
jsonschema = ">=3.2"
lxml = ">=4.6.5"
psycopg2-binary = "==2.8.6"
psycopg2-binary = ">=2.8.2,<2.9.0"
PyYAML = ">=5.4.1"
requests = ">=2.31.0,<3.0.0"
simplejson = ">=3.8.1"
Expand Down

0 comments on commit 10a6825

Please sign in to comment.