Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 893 Bytes
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/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
WORKDIR slim
RUN python setup.py install
RUN git clone https://github.com/cocodataset/cocoapi.git
WORKDIR cocoapi/PythonAPI
RUN make install
WORKDIR /tensorflow/models/research
COPY volume/ volume/
CMD exec /bin/bash -c "trap : TERM INT; sleep infinity & wait"