Skip to content

Commit

Permalink
feat(docker): use Sensing model
Browse files Browse the repository at this point in the history
  • Loading branch information
missinglink committed May 21, 2024
1 parent 19c4e0c commit cf83b6c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@ RUN make -j4
RUN DESTDIR=/libpostal make install
RUN ldconfig

# install Senzing model
# https://github.com/Senzing/libpostal-data

# language classifier
RUN rm -rf /usr/share/libpostal/libpostal/language_classifier \
&& curl -Ls https://public-read-libpostal-data.s3.amazonaws.com/v1.1.0/language_classifier.tar.gz \
| tar zxvf - -C /usr/share/libpostal/libpostal/

# libpostal data
RUN rm -rf /usr/share/libpostal/libpostal/numex /usr/share/libpostal/libpostal/transliteration \
&& curl -Ls https://public-read-libpostal-data.s3.amazonaws.com/v1.1.0/libpostal_data.tar.gz \
| tar zxvf - -C /usr/share/libpostal/libpostal/

# parser
RUN rm -rf /usr/share/libpostal/libpostal/address_parser \
&& curl -Ls https://public-read-libpostal-data.s3.amazonaws.com/v1.1.0/parser.tar.gz \
| tar zxvf - -C /usr/share/libpostal/libpostal/

# main image
FROM pelias/baseimage

Expand Down

0 comments on commit cf83b6c

Please sign in to comment.