forked from IBM/object-detection-anki-overdrive-cars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileNotebook
22 lines (22 loc) · 962 Bytes
/
DockerfileNotebook
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM tensorflow/tensorflow:1.9.0-devel
RUN apt-get update && apt-get install -y git nano vim wget
WORKDIR ~/
RUN apt-get install -y protobuf-compiler python-pil python-lxml python-tk
RUN pip install pillow jupyter matplotlib
WORKDIR /tensorflow
RUN git clone https://github.com/tensorflow/models.git
WORKDIR models
WORKDIR research
RUN curl -OL https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip
RUN unzip protoc-3.0.0-linux-x86_64.zip
RUN ./bin/protoc object_detection/protos/*.proto --python_out=.
RUN echo "export PYTHONPATH=${PYTHONPATH}:`pwd`:`pwd`/slim" >> ~/.bashrc
RUN python setup.py install
RUN git clone https://github.com/cocodataset/cocoapi.git
WORKDIR cocoapi/PythonAPI
RUN make
WORKDIR /tensorflow/models/research
RUN cp -r cocoapi/PythonAPI/pycocotools .
COPY object_detection_anki.ipynb /tensorflow/models/research/object_detection
EXPOSE 8888
CMD jupyter-notebook --ip="0.0.0.0" --no-browser --allow-root