forked from tensorflow/models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (25 loc) · 1.04 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
FROM kuberlab/tensorflow:cpu-36-1.9.0-base
RUN apt-get update && apt-get install -y \
python-pil \
python-lxml \
python-tk \
build-essential \
unzip && \
pip install pillow lxml Cython contextlib2 && \
wget -O protobuf.zip https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip && \
mkdir proto && unzip protobuf.zip -d proto && \
mv proto/bin/protoc /usr/bin/protoc && rm -rf protobuf.zip proto
COPY ./research /research
RUN cd /research && git clone https://github.com/cocodataset/cocoapi.git && \
cd cocoapi/PythonAPI && make && \
cp -r pycocotools /research/ && \
site_dir=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") && \
cp -r pycocotools $site_dir/ && cd /research && \
protoc object_detection/protos/*.proto --python_out=. && \
# Do not install code into container, only "slim" package
# python setup.py sdist && \
# pip install dist/* && \
(cd slim && python setup.py sdist) && \
pip install slim/dist/* && \
rm -rf /research/*
WORKDIR /notebooks