Dockerfile.deps 1.13 KB
Newer Older
Ignacio Corcuera's avatar
Ignacio Corcuera committed
1
from python:2.7
2

Ignacio Corcuera's avatar
Ignacio Corcuera committed
3
4
5
RUN apt-get update
RUN apt-get -y install git
RUN mkdir -p /senpy-plugins
6

Ignacio Corcuera's avatar
Ignacio Corcuera committed
7
RUN apt-get -y install python-numpy
8
9
10
11
12
RUN apt-get -y install python-scipy
RUN apt-get -y install python-sklearn
RUN apt-get -y install python-gevent
RUN apt-get -y install libopenblas-dev
RUN apt-get -y install gfortran
Ignacio Corcuera's avatar
Ignacio Corcuera committed
13
14
RUN apt-get -y install libxml2-dev libxslt1-dev python-dev

15
#RUN pip install --upgrade pip
Ignacio Corcuera's avatar
Ignacio Corcuera committed
16
17
18
19
20
21
22
23
24
25

ADD id_rsa /root/.ssh/id_rsa
RUN chmod 700 /root/.ssh/id_rsa
RUN echo "Host github.com\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config

RUN git clone https://github.com/gsi-upm/senpy /usr/src/app/
RUN git clone git@github.com:gsi-upm/senpy-plugins-enterprise /senpy-plugins/enterprise
RUN git clone https://github.com/gsi-upm/senpy-plugins-community /senpy-plugins/community

RUN pip install /usr/src/app
26
RUN pip install --no-use-wheel -r /senpy-plugins/enterprise/requirements.txt
Ignacio Corcuera's avatar
Ignacio Corcuera committed
27
28
29
30
RUN python -m nltk.downloader stopwords
RUN python -m nltk.downloader punkt
RUN python -m nltk.downloader maxent_treebank_pos_tagger
RUN python -m nltk.downloader wordnet
Ignacio Corcuera's avatar
Ignacio Corcuera committed
31
32

WORKDIR /senpy-plugins
Ignacio Corcuera's avatar
Ignacio Corcuera committed
33
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]