forked from OpenNMT/OpenNMT-py
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
35 lines (25 loc) · 787 Bytes
/
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
FROM pytorch/pytorch:1.0.1-cuda10.0-cudnn7-runtime
RUN apt-get -y update && \
apt-get upgrade -y && \
apt-get install -y python3-dev emacs &&\
apt-get install -y python3-dev git &&\
apt-get update -y
ADD requirements.txt .
RUN pip install -r requirements.txt
RUN git clone https://github.com/nvidia/apex && cd apex
ADD flaskController.py .
ADD summarizer.py .
ADD extractor.py .
ADD models ./models
ADD nif ./nif
ADD onmt ./onmt
ADD config ./config
RUN export LC_ALL=C.UTF-8
RUN export LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN python3 -m nltk.downloader punkt -d /usr/share/nltk_data
RUN python3 -m nltk.downloader stopwords -d /usr/share/nltk_data
EXPOSE 5000
ENTRYPOINT FLASK_APP=flaskController.py flask run -h 0.0.0.0 -p 5000
#CMD ["/bin/bash"]