-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
47 lines (40 loc) · 1.71 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
FROM pasmod/miniconder2
RUN apt-get update && \
apt-get install -y build-essential libxml2-dev libxslt-dev python-matplotlib libsm6 libxrender1 libfontconfig1 libicu-dev python-dev libhunspell-dev && \
apt-get clean
RUN conda install -y \
pip \
numpy \
pandas \
scikit-learn \
nltk \
h5py \
matplotlib \
lxml
RUN python -c "import nltk; nltk.download('stopwords'); nltk.download('punkt'); nltk.download('wordnet')"
RUN pip install hunspell
RUN pip install pytest
RUN pip install pytest-pep8
RUN pip install beautifulsoup4
RUN pip install simplejson
RUN pip install pandas_confusion
RUN pip install polyglot
RUN pip install regex
RUN pip install xgboost
WORKDIR /var/www
RUN mkdir -p /root/hunspell
ADD . .
RUN pip install -e .
RUN polyglot download --dir /root/polyglot_data pos2.nl
RUN polyglot download --dir /root/polyglot_data embeddings2.nl
RUN polyglot download --dir /root/polyglot_data pos2.en
RUN polyglot download --dir /root/polyglot_data embeddings2.en
RUN polyglot download --dir /root/polyglot_data pos2.es
RUN polyglot download --dir /root/polyglot_data embeddings2.es
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/nl_NL/nl_NL.aff /root/hunspell/nl_NL.aff
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/nl_NL/nl_NL.dic /root/hunspell/nl_NL.dic
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.aff /root/hunspell/en_US.aff
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/en/en_US.dic /root/hunspell/en_US.dic
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/es/es_ANY.dic /root/hunspell/es_ANY.dic
ADD https://cgit.freedesktop.org/libreoffice/dictionaries/plain/es/es_ANY.aff /root/hunspell/es_ANY.aff
RUN py.test --pep8