File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,8 @@ FROM standard AS postgis
127127USER root
128128ARG POSTGIS_REPO=https://github.com/postgis/postgis.git
129129ARG POSTGIS_BRANCH=master
130+ ARG ADDRESS_STANDARDIZER_REPO=https://github.com/postgis/address_standardizer.git
131+ ARG ADDRESS_STANDARDIZER_BRANCH=main
130132
131133RUN apt-get update && \
132134 apt-get install -y --no-install-recommends \
@@ -137,16 +139,27 @@ RUN apt-get update && \
137139 libgdal36 \
138140 libgeos-c1t64 \
139141 libsfcgal2 \
142+ # address_standardizer
143+ libpcre2-8-0 \
144+ libpcre2-posix3 \
140145 && \
146+ # PostGIS
141147 mkdir -p /usr/src/postgis && \
142148 git clone -b "$POSTGIS_BRANCH" --single-branch "$POSTGIS_REPO" /usr/src/postgis && \
143149 cd /usr/src/postgis && \
144150 ./autogen.sh && \
145151 ./configure --with-pgconfig=/usr/lib/postgresql/$PG_MAJOR/bin/pg_config --with-sfcgal && \
146152 make -j$(nproc) && \
147153 make install && \
154+ # address_standardizer
155+ mkdir -p /usr/src/address_standardizer && \
156+ git clone -b "$ADDRESS_STANDARDIZER_BRANCH" --single-branch "$ADDRESS_STANDARDIZER_REPO" /usr/src/address_standardizer && \
157+ cd /usr/src/address_standardizer && \
158+ make && \
159+ make install && \
160+ # Cleanup
148161 apt-get purge -y --auto-remove $(cat /build-deps.txt) && \
149162 apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
150- rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* /usr/src/postgis
163+ rm -rf /var/lib/apt/lists/* /var/cache/* /var/log/* /usr/src/postgis /usr/src/address_standardizer
151164
152165USER 26
Original file line number Diff line number Diff line change 44build-essential
55clang-19
66cmake
7- docbook5-xml
87docbook-xml
8+ docbook5-xml
99flex
1010gettext
1111git
@@ -23,6 +23,7 @@ libldap-dev
2323liblz4-dev
2424libnuma-dev
2525libpam0g-dev
26+ libpcre2-dev
2627libperl-dev
2728libproj-dev
2829libprotobuf-c-dev
You can’t perform that action at this time.
0 commit comments