Skip to content

Commit 6d62819

Browse files
committed
Sync Dockerfile => Dockerfile.gpu
1 parent 81c238f commit 6d62819

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

paddle/scripts/docker/Dockerfile.gpu

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update \
1515
&& apt-get clean -y
1616
RUN cd /usr/src/gtest && cmake . && make && cp *.a /usr/lib
1717
RUN pip install -U BeautifulSoup docopt PyYAML pillow \
18-
sphinx sphinx_rtd_theme recommonmark
18+
sphinx sphinx_rtd_theme recommonmark jupyter
1919

2020
ARG WITH_AVX
2121
ARG WITH_DOC
@@ -43,4 +43,15 @@ RUN echo 'root:root' | chpasswd
4343
RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config
4444
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
4545
EXPOSE 22
46-
CMD ["/usr/sbin/sshd", "-D"]
46+
47+
# Jupyter Notebook directory.
48+
RUN mkdir /notes/
49+
WORKDIR "/notes"
50+
EXPOSE 8888
51+
52+
RUN mkdir -p /opt/run
53+
ADD 00_sshd /opt/run/
54+
ADD 01_jupyter /opt/run/
55+
ADD run_all /opt/run/
56+
57+
ENTRYPOINT ["/opt/bin/run_all"]

0 commit comments

Comments
 (0)