-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
29 lines (20 loc) · 1 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
FROM ubuntu:14.04
MAINTAINER Casey Hilland <[email protected]>
RUN echo "deb http://archive.ubuntu.com/ubuntu/ $(lsb_release -sc) main universe" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y git build-essential wget tar \
python-setuptools python-dev gfortran libopenblas-dev liblapack-dev cmake
RUN easy_install pip
RUN pip install --upgrade pip
ADD . /src
RUN pip install -r /src/requirements.txt
RUN mkdir /home/ubuntu
RUN cd /home/ubuntu; wget https://s3.amazonaws.com/mordecai-geo/GoogleNews-vectors-negative300.bin.gz; \
gunzip GoogleNews-vectors-negative300.bin.gz
RUN cd /home/ubuntu; git clone https://github.com/mit-nlp/MITIE.git
RUN cd /home/ubuntu/MITIE; make MITIE-models
RUN mkdir /home/ubuntu/MITIE/mitielib/build
RUN cd /home/ubuntu/MITIE/mitielib/build; cmake ..
RUN cd /home/ubuntu/MITIE/mitielib/build; cmake --build . --config Release --target install
RUN pip install git+https://github.com/caerusassociates/mitie-py.git
EXPOSE 5000
CMD ["python", "/src/app.py"]