File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 1
- FROM python:3
1
+ FROM python:3.6
2
2
3
3
WORKDIR /app
4
4
5
+ # install donkey with tensorflow (cpu only version)
6
+ ADD ./setup.py /app/setup.py
7
+ ADD ./README.md /app/README.md
8
+ RUN pip install -e .[tf]
9
+
10
+ # get testing requirements
11
+ RUN pip install -e .[dev]
12
+
13
+ # setup jupyter notebook to run without password
14
+ RUN pip install jupyter notebook
15
+ RUN jupyter notebook --generate-config
16
+ RUN echo "c.NotebookApp.password = ''" >>/root/.jupyter/jupyter_notebook_config.py
17
+ RUN echo "c.NotebookApp.token = ''" >>/root/.jupyter/jupyter_notebook_config.py
18
+
19
+ # add the whole app dir after install so the pip install isn't updated when code changes.
5
20
ADD . /app
6
- RUN pip install -e .
7
21
22
+ # start the jupyter notebook
23
+ CMD jupyter notebook --no-browser --ip 0.0.0.0 --port 8888 --allow-root --notebook-dir=/app/notebooks
24
+
25
+ # port for donkeycar
8
26
EXPOSE 8887
27
+
28
+ # port for jupyter notebook
29
+ EXPOSE 8888
You can’t perform that action at this time.
0 commit comments