-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathDockerfile
36 lines (29 loc) · 1.42 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
FROM ubuntu:latest
# python basics
RUN apt-get update && \
apt-get -y install python3 python3-pip python3-dev
# cld2-cffi doesn't install properly after the rest of the packages, for some reason
RUN apt-get -y install libffi-dev && \
pip3 install cld2-cffi
# install the big packages and the ones with complex dependencies
RUN apt-get -y install libxslt1-dev antiword unrtf poppler-utils pstotext \
tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev \
postgresql libpq-dev git && \
pip3 install --upgrade pip && \
pip3 install NumPy SciPy spacy && \
pip3 install git+git://github.com/aerkalov/ebooklib.git && \
pip3 install textract
# download the spacy model using curl for progress indication
# uncomment the below to include it in the build
#RUN apt-get -y install curl && \
# mkdir /spacy-data && \
# curl -L -o "/spacy-data/en_core_web_md-1.2.1.tar.gz" $zflag \
# https://github.com/explosion/spacy-models/releases/download/en_core_web_md-1.2.1/en_core_web_md-1.2.1.tar.gz
#RUN pip3 install "/spacy-data/en_core_web_md-1.2.1.tar.gz" && \
# python3 -m spacy link en_core_web_md en_default
RUN mkdir /internal-displacement
VOLUME /internal-displacement
WORKDIR /internal-displacement
COPY . /internal-displacement
RUN pip3 install -r /internal-displacement/requirements.txt
CMD jupyter notebook --no-browser --ip=0.0.0.0 --port 3323 /internal-displacement/notebooks