forked from tensorflow/models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 908 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
# see https://hub.docker.com/r/tensorflow/tensorflow/tags/
FROM gcr.io/tensorflow/tensorflow:latest-py3
WORKDIR /tensorflow
ADD . /tensorflow/models
# Grab required packages
RUN apt-get update
RUN apt-get install -y git protobuf-compiler
# Install required python packages
RUN pip install Cython
RUN pip install jupyter
RUN pip install matplotlib
# Get cocoapi
RUN git clone https://github.com/cocodataset/cocoapi.git
WORKDIR /tensorflow/cocoapi/PythonAPI
RUN make
RUN cp -r pycocotools /tensorflow/models/research/
# Compile protos
WORKDIR /tensorflow/models/research
RUN protoc object_detection/protos/*.proto --python_out=.
# Append PYTHONPATH
ENV PYTHONPATH="/:$PYTHONPATH:/tensorflow/models/research:/tensorflow/models/research/slim"
WORKDIR /tensorflow/models/object_detection
# Make sure it works
#CMD ["python", "/tensorflow/models/research/object_detection/builders/model_builder_test.py"]