-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add libpostal installation and fix minor element
- Loading branch information
1 parent
2e84684
commit 0293d85
Showing
6 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,34 @@ | ||
FROM cnrsinist/ezs-python-server:py3.9-no16-1.0.6 | ||
|
||
USER root | ||
# Install all python dependencies | ||
# RUN pip install \ | ||
# unidecode==1.3.7 | ||
|
||
# Install libpostal | ||
ENV LIBPOSTAL_HOME=/usr/share/libpostal | ||
|
||
RUN apt install -y curl autoconf automake libtool pkg-config | ||
|
||
ADD \ | ||
https://codeload.github.com/openvenues/libpostal/zip/refs/heads/master \ | ||
${LIBPOSTAL_HOME}/libpostal.zip | ||
|
||
WORKDIR ${LIBPOSTAL_HOME} | ||
|
||
RUN unzip libpostal.zip && \ | ||
chmod +x libpostal-master && \ | ||
ch libpostal-master && \ | ||
./bootstrap.sh && \ | ||
./configure --datadir=${LIBPOSTAL_HOME} && \ | ||
make -j4 && \ | ||
make install && \ | ||
ldconfig && \ | ||
cd .. && \ | ||
rm -rf libpostal-master && \ | ||
rm libpostal.zip | ||
|
||
# Install all node dependencies | ||
RUN npm install \ | ||
node-gyp \ | ||
@cymen/[email protected] \ | ||
@ezs/[email protected] \ | ||
@ezs/[email protected] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters