From 8f4f155bd6dc1baa46bbbf515df3d164342b7e20 Mon Sep 17 00:00:00 2001 From: wroscoe Date: Fri, 24 Aug 2018 15:01:12 -0700 Subject: [PATCH] removed need for notebooks folder --- Dockerfile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 85c86590f..42d0f25f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,29 @@ -FROM python:3 +FROM python:3.6 WORKDIR /app +# install donkey with tensorflow (cpu only version) +ADD ./setup.py /app/setup.py +ADD ./README.md /app/README.md +RUN pip install -e .[tf] + +# get testing requirements +RUN pip install -e .[dev] + +# setup jupyter notebook to run without password +RUN pip install jupyter notebook +RUN jupyter notebook --generate-config +RUN echo "c.NotebookApp.password = ''">>/root/.jupyter/jupyter_notebook_config.py +RUN echo "c.NotebookApp.token = ''">>/root/.jupyter/jupyter_notebook_config.py + +# add the whole app dir after install so the pip install isn't updated when code changes. ADD . /app -RUN pip install -e . +#start the jupyter notebook +CMD jupyter notebook --no-browser --ip 0.0.0.0 --port 8888 --allow-root --notebook-dir=/app/notebooks + +#port for donkeycar EXPOSE 8887 + +#port for jupyter notebook +EXPOSE 8888 \ No newline at end of file