forked from CLARIN-PL/PolDeepNer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
71 lines (59 loc) · 1.69 KB
/
Dockerfile
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
LABEL maintainer="Michał Marcińczuk <marcinczuk@gmail.com>"
RUN apt-get clean && apt-get update
# Set the locale
RUN apt-get install locales
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Python 3.6
RUN apt-get install -y software-properties-common vim
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN apt-get install -y git
# update pip
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install wheel
RUN pip install seqeval
RUN pip install keras
RUN pip install tensorflow
RUN pip install git+https://www.github.com/keras-team/keras-contrib.git
RUN pip install cython
RUN pip install pyfasttext
RUN pip install fasttext
RUN pip install sklearn
RUN pip install python-dateutil
RUN pip install nltk
RUN pip install gensim
# install corpus2
RUN apt-get install -y libboost-all-dev
RUN apt-get install -y libicu-dev
RUN apt-get install -y libxml++2.6-dev
RUN apt-get install -y bison
RUN apt-get install -y flex
RUN apt-get install -y libloki-dev
RUN apt-get install -y cmake
RUN apt-get install -y g++
RUN apt-get install -y swig
RUN ls -a
RUN git clone http://nlp.pwr.edu.pl/corpus2.git
RUN mkdir -p corpus2/bin
WORKDIR "/corpus2/bin"
RUN cmake -D CORPUS2_BUILD_POLIQARP:BOOL=True ..
RUN make -j
# because of an error in c2pqtest, “make” must be done twice
RUN make -j
RUN make install
RUN ldconfig
WORKDIR "/"
# install toki
RUN git clone http://nlp.pwr.edu.pl/toki.git
RUN mkdir -p toki/bin
WORKDIR "/toki/bin"
RUN cmake ..
RUN make -j
RUN make install
RUN ldconfig
WORKDIR "/poldeepner"