Skip to content

Commit 3e8c363

Browse files
committed
add WITH_DOC for print_operators_doc in docker/build.sh
1 parent 45dfc34 commit 3e8c363

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

paddle/scripts/docker/build.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,14 @@ EOF
185185
${DOCKERFILE_GPU_ENV}
186186
ADD go/cmd/pserver/pserver /usr/bin/
187187
ADD go/cmd/master/master /usr/bin/
188-
ADD paddle/pybind/print_operators_doc /usr/bin/
188+
EOF
189+
190+
if [[ ${WITH_DOC:-OFF} == 'ON' ]]; then
191+
cat >> /paddle/build/Dockerfile <<EOF
192+
ADD paddle/pybind/print_operators_doc /usr/bin/
193+
EOF
194+
fi
195+
cat >> /paddle/build/Dockerfile <<EOF
189196
# default command shows the paddle version and exit
190197
CMD ["paddle", "version"]
191198
EOF

0 commit comments

Comments
 (0)