From df47bfc0777fb5ecfeb127f55d5ab8b5e2607275 Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Thu, 19 Apr 2018 11:29:02 +0800 Subject: [PATCH] check pserver file while writing dockerfile --- paddle/scripts/docker/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/docker/build.sh b/paddle/scripts/docker/build.sh index 2b2a904974f..86ef3e4df15 100755 --- a/paddle/scripts/docker/build.sh +++ b/paddle/scripts/docker/build.sh @@ -207,8 +207,14 @@ EOF ${DOCKERFILE_CUDNN_DSO} ${DOCKERFILE_GPU_ENV} ENV NCCL_LAUNCH_MODE PARALLEL - ADD go/cmd/pserver/pserver /usr/bin/ - ADD go/cmd/master/master /usr/bin/ +EOF + if [[ ${WITH_GOLANG:-OFF} == "ON" ]]; then + cat >> /paddle/build/Dockerfile <> /paddle/build/Dockerfile <