-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerJupyter
23 lines (20 loc) · 1.12 KB
/
DockerJupyter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:bionic
#https://towardsdatascience.com/tensorflow-object-detection-with-docker-from-scratch-5e015b639b0b
# ./mnt/tensorflow/models git clone https://github.com/tensorflow/models.git mnt/tensorflow/models
RUN apt-get update && yes | apt-get upgrade
RUN apt-get install -y git python-pip
RUN pip install --upgrade pip
RUN pip install tensorflow
RUN apt-get install -y protobuf-compiler python-pil python-lxml
RUN pip install jupyter
RUN pip install matplotlib
# RUN mkdir -p /tensorflow/models # edit
# RUN git clone https://github.com/tensorflow/models.git /tensorflow/models # edit
ADD ./mnt/tensorflow/models /tensorflow/models
WORKDIR /tensorflow/models/research
RUN protoc object_detection/protos/*.proto --python_out=.
RUN export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
RUN jupyter notebook --generate-config --allow-root
RUN echo "c.NotebookApp.password = u'sha1:6a3f528eec40:6e896b6e4828f525a6e20e5411cd1c8075d68619'" >> /root/.jupyter/jupyter_notebook_config.py
# EXPOSE 8888
CMD ["jupyter", "notebook", "--allow-root", "--notebook-dir=/tensorflow/models/research/object_detection", "--ip=0.0.0.0", "--port=8888", "--no-browser"]