File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5,4 +5,6 @@ if(WITH_PYTHON)
5
5
${GLOB_OP_LIB} )
6
6
endif (WITH_PYTHON )
7
7
8
- cc_binary (print_operators_doc SRCS print_operators_doc.cc DEPS ${GLOB_OP_LIB} )
8
+ if (WITH_DOC )
9
+ cc_binary (print_operators_doc SRCS print_operators_doc.cc DEPS ${GLOB_OP_LIB} )
10
+ endif (WITH_DOC )
Original file line number Diff line number Diff line change 185
185
${DOCKERFILE_GPU_ENV}
186
186
ADD go/cmd/pserver/pserver /usr/bin/
187
187
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
189
196
# default command shows the paddle version and exit
190
197
CMD ["paddle", "version"]
191
198
EOF
You can’t perform that action at this time.
0 commit comments