-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
36 lines (28 loc) · 1002 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
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y python3-dev python3-pip python3-venv wget unzip
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN mkdir img
RUN mkdir notebooks
RUN mkdir src
RUN mkdir data
COPY img/ /img
COPY notebooks/ /notebooks
COPY src/ /src
COPY data/ /data
RUN cd /data/CORD-19-research-challenge && tar -xzvf CORD-19-research-challenge.tar.gz .
COPY LICENSE /LICENSE
COPY README.md /README.md
COPY requirements.txt /requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
RUN pip3 install jupyter
RUN python3 -c "import nltk; nltk.download('punkt')"
RUN python3 -c "import nltk; nltk.download('stopwords')"
RUN python3 -c "import nltk; nltk.download('wordnet')"
RUN wget https://storage.googleapis.com/bert_models/2018_10_18/uncased_L-12_H-768_A-12.zip
RUN unzip uncased_L-12_H-768_A-12.zip
RUN pip3 install bert-serving-server==1.10 --no-deps
RUN rm uncased_L-12_H-768_A-12.zip