-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathDockerfile
49 lines (31 loc) · 1.3 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM tensorflow/tensorflow:latest-devel
MAINTAINER Bowei Liu <[email protected]>
WORKDIR /root
RUN apt-get update && apt-get install -y --no-install-recommends \
screen \
tmux \
vim
RUN curl -O http://download.tensorflow.org/example_images/flower_photos.tgz && \
tar xzf flower_photos.tgz
WORKDIR /tensorflow
RUN bazel build tensorflow/examples/image_retraining:retrain \
tensorflow/examples/image_retraining:label_image
RUN bazel-bin/tensorflow/examples/image_retraining/retrain \
--image_dir "$HOME"/flower_photos \
--how_many_training_steps=200
WORKDIR /root
RUN pip install -U flask twisted
RUN curl -sSL https://nodejs.org/dist/v8.9.0/node-v8.9.0-linux-x64.tar.gz | \
tar xzf - --strip-components=1 \
--exclude="README.md" \
--exclude="LICENSE" \
--exclude="ChangeLog" \
-C "/usr/local"
RUN npm install http-proxy && \
npm install -g seaport http-server
# recommend using --net=host, but if not, this exposes at least one port to the host
EXPOSE 12480
COPY . /root/
RUN npm i
RUN chmod u+x /root/*.sh
CMD /bin/bash