Skip to content

Instantly share code, notes, and snippets.

@dadencukillia
Last active March 3, 2025 19:31
Show Gist options
  • Save dadencukillia/0d8cb861a77993e98ec2bc733cd70c19 to your computer and use it in GitHub Desktop.
Save dadencukillia/0d8cb861a77993e98ec2bc733cd70c19 to your computer and use it in GitHub Desktop.
Docker. Manticore Search ukrainian lemmatizer. Thanks for @hlushpenko
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