File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ RUN apt-get update && \
34
34
35
35
# git credential to skip password typing
36
36
RUN git config --global credential.helper store
37
- # fetch PaddlePaddle book
38
- RUN git submodule update --init --recursive
39
37
40
38
# Fix locales to en_US.UTF-8
41
39
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
@@ -52,7 +50,9 @@ RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
52
50
cd .. && rm -rf cmake-3.4.1
53
51
54
52
COPY . /paddle/
53
+ RUN cd /paddle/ && git submodule update --init --recursive
55
54
RUN /paddle/paddle/scripts/docker/build.sh
55
+
56
56
VOLUME ["/usr/share/nginx/html/data" , "/usr/share/nginx/html/paddle" ]
57
57
58
58
# Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service
Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ RUN apt-get update && \
34
34
35
35
# git credential to skip password typing
36
36
RUN git config --global credential.helper store
37
- # fetch PaddlePaddle book
38
- RUN git submodule update --init --recursive
39
37
40
38
# Fix locales to en_US.UTF-8
41
39
RUN localedef -i en_US -f UTF-8 en_US.UTF-8
@@ -52,7 +50,9 @@ RUN curl -sSL https://cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xz && \
52
50
cd .. && rm -rf cmake-3.4.1
53
51
54
52
COPY . /paddle/
53
+ RUN cd /paddle/ && git submodule update --init --recursive
55
54
RUN /paddle/paddle/scripts/docker/build.sh
55
+
56
56
VOLUME ["/usr/share/nginx/html/data", "/usr/share/nginx/html/paddle"]
57
57
58
58
# Configure OpenSSH server. c.f. https://docs.docker.com/engine/examples/running_ssh_service
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- LOG=/var/log/all
3
2
4
- touch $LOG
5
-
6
- /usr/sbin/sshd -D >> $LOG &
7
- jupyter notebook --ip=0.0.0.0 /paddle/book/ >> $LOG &
8
- tail -f $LOG
3
+ /usr/sbin/sshd -D &
4
+ jupyter notebook --ip=0.0.0.0 /paddle/book/
You can’t perform that action at this time.
0 commit comments