Skip to content

Commit bee04d7

Browse files
committed
fix: remove binary from other pg versions
For example build image for pg 13 will install pg 15 binaries because postgres contrib package have dependencies to postgres-15
1 parent 7369b3e commit bee04d7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ RUN apt-get update && apt-get upgrade -y && \
5353
postgresql-$PG_MAJOR-postgis-$POSTGIS_VERSION-scripts; \
5454
done && \
5555
apt-get install --no-install-recommends -y postgresql-$PG_MAJOR-pgrouting && \
56-
if [ $(echo $PG_MAJOR | cut -f 1 -d .) -ge "10" ]; then \
57-
apt-get install --no-install-recommends -y postgresql-contrib; \
58-
else \
59-
apt-get install --no-install-recommends -y postgresql-contrib-$PG_MAJOR; \
60-
fi && \
6156
apt-get install -y ca-certificates tmux screen curl less && \
6257
apt-get clean && \
6358
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)