Last active
March 3, 2025 19:31
-
-
Save dadencukillia/0d8cb861a77993e98ec2bc733cd70c19 to your computer and use it in GitHub Desktop.
Docker. Manticore Search ukrainian lemmatizer. Thanks for @hlushpenko
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
FROM manticoresearch/manticore:latest | |
RUN apt-key adv --fetch-keys http://repo.manticoresearch.com/GPG-KEY-manticore && \ | |
apt -y update --allow-insecure-repositories && \ | |
apt -y install \ | |
wget \ | |
mc \ | |
build-essential \ | |
libreadline-dev \ | |
libncursesw5-dev \ | |
libssl-dev \ | |
libsqlite3-dev \ | |
tk-dev \ | |
libgdbm-dev \ | |
libc6-dev \ | |
libbz2-dev \ | |
libffi-dev \ | |
zlib1g-dev \ | |
--allow-unauthenticated | |
RUN cd /tmp && \ | |
wget https://python.org/ftp/python/3.9.4/Python-3.9.4.tgz && \ | |
tar xzf Python-3.9.4.tgz && \ | |
cd Python-3.9.4 && \ | |
./configure --enable-optimizations --enable-shared && \ | |
make -j$(nproc) altinstall && \ | |
ldconfig | |
RUN pip3.9 install pymorphy2[fast] pymorphy2-dicts-uk pymorphy2-dicts-ru | |
RUN wget https://repo.manticoresearch.com/manticore-repo.noarch.deb && \ | |
dpkg -i manticore-repo.noarch.deb && \ | |
apt-key adv --fetch-keys http://repo.manticoresearch.com/GPG-KEY-manticore && \ | |
apt -y update --allow-insecure-repositories && \ | |
apt -y install \ | |
manticore-lemmatizer-uk \ | |
manticore-language-packs \ | |
manticore-extra \ | |
--allow-unauthenticated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment