-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (40 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
47 lines (40 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM python:3
RUN apt-get update && apt-get install -y \
build-essential \
gfortran \
libblas-dev \
liblapack-dev \
libxft-dev \
&& rm -rf /var/lib/apt/lists/*
RUN echo 'export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"' >> ~/.bash_profile && \
. ~/.bash_profile && \
cd ~ &&\
git clone https://github.com/taku910/mecab.git && \
cd mecab/mecab && \
./configure --enable-utf8-only && \
make && \
make check && \
make install && \
cd ../mecab-ipadic && \
./configure --with-charset=utf8 && \
make && \
make install &&\
cd ~ &&\
git clone --depth 1 https://github.com/neologd/mecab-ipadic-neologd.git && \
cd mecab-ipadic-neologd && \
./bin/install-mecab-ipadic-neologd -n -y
RUN pip3 install --upgrade pyzmq --install-option="--zmq=bundled" && \
pip3 install --upgrade jupyter && \
pip3 install --upgrade \
numpy \
scipy \
scikit-learn \
matplotlib \
pandas \
mecab-python3 \
neologdn
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
VOLUME /notebook
WORKDIR /notebook
EXPOSE 8888
ENTRYPOINT jupyter notebook --ip=0.0.0.0 --allow-root --no-browser