1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 21:18:12 +00:00
senpy/Dockerfile

34 lines
1.1 KiB
Docker
Raw Normal View History

2015-12-22 15:04:39 +00:00
from python:2.7
2015-10-08 17:26:02 +00:00
2015-12-22 15:04:39 +00:00
RUN apt-get update
RUN apt-get -y install git
RUN mkdir -p /senpy-plugins
2016-02-03 12:43:31 +00:00
2015-12-22 15:04:39 +00:00
RUN apt-get -y install python-numpy
2016-02-03 12:43:31 +00:00
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
2016-02-10 10:25:20 +00:00
RUN apt-get -y install libxml2-dev libxslt1-dev python-dev
2016-02-21 01:53:39 +00:00
#RUN pip install --upgrade pip
2015-12-22 15:04:39 +00:00
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
2016-02-03 12:43:31 +00:00
RUN pip install --no-use-wheel -r /senpy-plugins/enterprise/requirements.txt
2016-02-10 10:25:20 +00:00
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
2015-12-22 15:04:39 +00:00
WORKDIR /senpy-plugins
2016-02-10 10:25:20 +00:00
ENTRYPOINT ["python", "-m", "senpy", "-f", ".", "--host", "0.0.0.0"]