mirror of https://github.com/gsi-upm/senpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
Docker
34 lines
1.1 KiB
Docker
9 years ago
|
from python:2.7
|
||
9 years ago
|
|
||
9 years ago
|
RUN apt-get update
|
||
|
RUN apt-get -y install git
|
||
|
RUN mkdir -p /senpy-plugins
|
||
9 years ago
|
|
||
9 years ago
|
RUN apt-get -y install python-numpy
|
||
9 years ago
|
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
|
||
9 years ago
|
RUN apt-get -y install libxml2-dev libxslt1-dev python-dev
|
||
|
|
||
8 years ago
|
#RUN pip install --upgrade pip
|
||
9 years ago
|
|
||
|
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
|
||
9 years ago
|
RUN pip install --no-use-wheel -r /senpy-plugins/enterprise/requirements.txt
|
||
9 years ago
|
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
|
||
9 years ago
|
|
||
|
WORKDIR /senpy-plugins
|
||
9 years ago
|
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]
|