-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
47 lines (37 loc) · 1.08 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
37
38
39
40
41
42
43
44
45
46
47
FROM continuumio/miniconda3
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
RUN apt-get update
RUN apt-get install -y --no-install-recommends --allow-unauthenticated \
zip \
gzip \
make \
automake \
gcc \
build-essential \
g++ \
cpp \
libc6-dev \
man-db \
autoconf \
pkg-config \
unzip \
libffi-dev \
software-properties-common
RUN mkdir -pv /local/fever-common/data
RUN mkdir /fever
WORKDIR /fever
ADD requirements.txt /fever/
RUN pip install -r requirements.txt
RUN python -c "import nltk; nltk.download('punkt')"
RUN mkdir -pv src
RUN mkdir -pv configs
RUN wget "https://raw.githubusercontent.com/heruberuto/fever-cs-dataset/master/download_prebuilt.sh" -O download_prebuilt.sh && /bin/bash download_prebuilt.sh /local/fever-common/data
ADD src src
ADD configs configs
ADD predict.sh .
ENV PYTHONPATH /fever/src
ENV FLASK_APP fever_cs:make_api
#ENTRYPOINT ["/bin/bash","-c"]
RUN cd /fever
CMD ["sh","-c","cd /fever && PYTHONPATH=src waitress-serve --host=0.0.0.0 --port=5000 --call fever_cs:make_api"]