Код: Выделить всё
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get install -y python python-dev python-pip
ADD . /app
RUN apt-get install -y python-scipy
RUN pip install -r /arrc/requirements.txt
EXPOSE 5000
WORKDIR /app
CMD python app.py
Код: Выделить всё
**********************************************************************
Resource u'tokenizers/punkt/english.pickle' not found. Please
use the NLTK Downloader to obtain the resource: >>>
nltk.download()
Searched in:
- '/root/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- u''
**********************************************************************
Код: Выделить всё
CMD python
CMD import nltk
CMD nltk.download()
Код: Выделить всё
CMD python -m nltk.downloader -d /usr/share/nltk_data popular
Подробнее здесь: https://stackoverflow.com/questions/311 ... k-download