-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
46 lines (32 loc) · 973 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
# 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
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')" ]
COPY scripts /home/tutorial
WORKDIR /home/tutorial
# build image for cnn
FROM continuumio/miniconda3 AS cnn
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')" ]
COPY scripts /home/tutorial
WORKDIR /home/tutorial
# build image for vote
FROM continuumio/miniconda3 AS vote
RUN pip install sklearn
RUN pip install pandas
COPY scripts /home/tutorial
WORKDIR /home/tutorial