Skip to content

Commit 73847d0

Browse files
authored
Merge pull request autorope#297 from wroscoe/wr/updated_dockerfile
updated dockerfile
2 parents 57c75f1 + 8f4f155 commit 73847d0

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Dockerfile

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1-
FROM python:3
1+
FROM python:3.6
22

33
WORKDIR /app
44

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.
520
ADD . /app
6-
RUN pip install -e .
721

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
826
EXPOSE 8887
27+
28+
#port for jupyter notebook
29+
EXPOSE 8888

0 commit comments

Comments
 (0)