forked from nlpie/Workshop_large_scale_nlp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (32 loc) · 975 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
36
37
38
39
40
41
42
43
44
45
46
47
48
# build image for glove300 embeddings
# to build a particular target, speficy:
# DOCKER_BUILDKIT=1 docker build -t <imagename> --target <target> .
FROM continuumio/miniconda3 AS ml
COPY scripts /home/tutorial
RUN pip install numpy
RUN pip install sklearn
RUN pip install pandas
RUN pip install nltk
RUN pip install gensim
RUN pip install click
RUN [ "python", "-c", "import nltk; nltk.download('punkt')" ]
WORKDIR /home/tutorial
# build image for cnn
FROM continuumio/miniconda3 AS cnn
COPY scripts /home/tutorial
RUN pip install numpy
RUN pip install sklearn
RUN pip install pandas
RUN pip install nltk
RUN pip install gensim
RUN pip install click
RUN pip install tensorflow==1.14.0
RUN pip install keras==2.2.4
RUN [ "python", "-c", "import nltk; nltk.download('punkt')" ]
WORKDIR /home/tutorial
# build image for vote
FROM continuumio/miniconda3 AS vote
COPY scripts /home/tutorial
RUN pip install sklearn
RUN pip install pandas
WORKDIR /home/tutorial