forked from GuessWhatGame/guesswhat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 1 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
ARG tensorflow_docker=1.11.0-py3
FROM tensorflow/tensorflow:$tensorflow_docker
ARG tensorflow_package=tensorflow
WORKDIR /usr/src/guesswhat
COPY . /usr/src/guesswhat
RUN apt-get update && apt-get install -y wget \
&& pip install nltk tqdm image $tensorflow_package \
&& mkdir data data/img data/img/raw data/img/ft_vgg_img data/img/ft_vgg_crop \
out out/oracle out/guesser out/qgen out/looper \
&& wget https://s3-us-west-2.amazonaws.com/guess-what/guesswhat.train.jsonl.gz -P data \
&& wget https://s3-us-west-2.amazonaws.com/guess-what/guesswhat.valid.jsonl.gz -P data \
&& wget https://s3-us-west-2.amazonaws.com/guess-what/guesswhat.test.jsonl.gz -P data \
&& wget www.florian-strub.com/github/ft_vgg_img.zip -P data/img \
&& unzip data/img/ft_vgg_img.zip -d data/img \
&& wget http://florian-strub.com/github/pretrained_models.tf1-3.zip \
&& unzip pretrained_models.tf1-3.zip \
&& cp out/dict.json data/dict.json
ENV PYTHONPATH "/usr/src/guesswhat/src:$PYTHONPATH"