8000 add samples to docker and start jupyter by default · tensorflow/tensorflow@f0eb9ce · GitHub
[go: up one dir, main page]

Skip t 8000 o content

Commit f0eb9ce

Browse files
jendapVijay Vasudevan
authored andcommitted
add samples to docker and start jupyter by default
1 parent 8cbc3dd commit f0eb9ce

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM b.gcr.io/tensorflow/tensorflow:latest
22
MAINTAINER Vincent Vanhoucke <vanhoucke@google.com>
33
RUN pip install scikit-learn
4+
RUN rm -rf /notebooks/*
45
ADD *.ipynb /notebooks/
56
WORKDIR /notebooks
67
CMD ["/run_jupyter.sh"]

tensorflow/tools/docker/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ RUN pip --no-cache-dir install \
3535
# Set up our notebook config.
3636
COPY jupyter_notebook_config.py /root/.jupyter/
3737

38+
# Copy sample notebooks.
39+
COPY notebooks /notebooks
40+
3841
# Jupyter has issues with being run directly:
3942
# https://github.com/ipython/ipython/issues/7062
4043
# We just add a little wrapper script.
@@ -45,6 +48,6 @@ EXPOSE 6006
4548
# IPython
4649
EXPOSE 8888
4750

48-
WORKDIR "/root"
51+
WORKDIR "/notebooks"
4952

50-
CMD ["/bin/bash"]
53+
CMD ["/run_jupyter.sh"]

tensorflow/tools/docker/Dockerfile.gpu

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ RUN pip --no-cache-dir install \
3535
# Set up our notebook config.
3636
COPY jupyter_notebook_config.py /root/.jupyter/
3737

38+
# Copy sample notebooks.
39+
COPY notebooks /notebooks
40+
3841
# Jupyter has issues with being run directly:
3942
# https://github.com/ipython/ipython/issues/7062
4043
# We just add a little wrapper script.
@@ -45,6 +48,6 @@ EXPOSE 6006
4548
# IPython
4649
EXPOSE 8888
4750

48-
WORKDIR "/root"
51+
WORKDIR "/notebooks"
4952

50-
CMD ["/bin/bash"]
53+
CMD ["/run_jupyter.sh"]

0 commit comments

Comments
 (0)
0