forked from autorope/donkeycar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (21 loc) · 811 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
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
#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