forked from BangLiu/ACS-QG
-
Notifications
You must be signed in to change notification settings - Fork 2
/
PolyDockerfile
29 lines (21 loc) · 878 Bytes
/
PolyDockerfile
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 tensorflow/tensorflow:latest-gpu
LABEL maintainer="[email protected]"
ENV PYTHONIOENCODING=utf-8
RUN apt-get update && apt-get install -y make vim python3-pip git wget default-jre
# Install python packages
# For benepar setup, cython and numpy need to be installed separately
RUN pip3 install Cython==0.29.12
RUN pip3 install numpy==1.17.2
COPY build/requirements.txt /home/requirements.txt
RUN pip3 install -r /home/requirements.txt
# Download spaCy models
RUN python3 -m spacy download de_core_news_sm
RUN python3 -m spacy download en_core_web_sm
RUN python3 -m spacy download en
# Create directory structure
RUN mkdir -p /home/FQG/src/model/FactorizedQG/
# Copy code to code path
COPY build /home/FQG/src/model/FactorizedQG/
WORKDIR /home/FQG/src/model/FactorizedQG/
# Download benepar model
RUN python3 /home/FQG/src/model/FactorizedQG/setup.py