Skip to content

Instantly share code, notes, and snippets.

@tag1216
Created February 10, 2017 01:29
Show Gist options
  • Save tag1216/ed77836945ea319ddaa1df1cc2f0289c to your computer and use it in GitHub Desktop.
Save tag1216/ed77836945ea319ddaa1df1cc2f0289c to your computer and use it in GitHub Desktop.
NEologdコンテナのDockerfile
#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