Skip to content

Commit

Permalink
add samples to docker and start jupyter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jendap authored and Vijay Vasudevan committed Feb 21, 2016
1 parent 8cbc3dd commit f0eb9ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions tensorflow/examples/udacity/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM b.gcr.io/tensorflow/tensorflow:latest
MAINTAINER Vincent Vanhoucke <[email protected]>
RUN pip install scikit-learn
RUN rm -rf /notebooks/*
ADD *.ipynb /notebooks/
WORKDIR /notebooks
CMD ["/run_jupyter.sh"]
7 changes: 5 additions & 2 deletions tensorflow/tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ RUN pip --no-cache-dir install \
# Set up our notebook config.
COPY jupyter_notebook_config.py /root/.jupyter/

# Copy sample notebooks.
COPY notebooks /notebooks

# Jupyter has issues with being run directly:
# https://github.com/ipython/ipython/issues/7062
# We just add a little wrapper script.
Expand All @@ -45,6 +48,6 @@ EXPOSE 6006
# IPython
EXPOSE 8888

WORKDIR "/root"
WORKDIR "/notebooks"

CMD ["/bin/bash"]
CMD ["/run_jupyter.sh"]
7 changes: 5 additions & 2 deletions tensorflow/tools/docker/Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ RUN pip --no-cache-dir install \
# Set up our notebook config.
COPY jupyter_notebook_config.py /root/.jupyter/

# Copy sample notebooks.
COPY notebooks /notebooks

# Jupyter has issues with being run directly:
# https://github.com/ipython/ipython/issues/7062
# We just add a little wrapper script.
Expand All @@ -45,6 +48,6 @@ EXPOSE 6006
# IPython
EXPOSE 8888

WORKDIR "/root"
WORKDIR "/notebooks"

CMD ["/bin/bash"]
CMD ["/run_jupyter.sh"]

0 comments on commit f0eb9ce

Please sign in to comment.