Created
February 10, 2017 01:29
-
-
Save tag1216/ed77836945ea319ddaa1df1cc2f0289c to your computer and use it in GitHub Desktop.
NEologdコンテナのDockerfile
This file contains hidden or 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
#https://github.com/neologd/mecab-ipadic-neologd/blob/master/README.ja.md | |
FROM ubuntu | |
RUN apt update | |
RUN apt -y upgrade | |
RUN apt -y install mecab libmecab-dev mecab-ipadic-utf8 git make curl xz-utils file | |
# install neologd | |
RUN mkdir -p /usr/lib/mecab/dic | |
RUN cd /root; \ | |
git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git | |
# update dictionary | |
RUN cd /root/mecab-ipadic-neologd; \ | |
./bin/install-mecab-ipadic-neologd -n -y; | |
CMD mecab -d /usr/lib/mecab/dic/mecab-ipadic-neologd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment