From 50ab8723caea0b61ad99e01031aa40cd07dc5fdb Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Tue, 25 Apr 2017 20:56:30 -0700 Subject: [PATCH] make docker build command for building prodction image more precise --- doc/getstarted/build_and_install/docker_install_cn.rst | 2 +- doc/getstarted/build_and_install/docker_install_en.rst | 2 +- paddle/scripts/docker/README.md | 2 +- paddle/scripts/docker/build.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/getstarted/build_and_install/docker_install_cn.rst b/doc/getstarted/build_and_install/docker_install_cn.rst index e35dc6aaef0..da2d4234658 100644 --- a/doc/getstarted/build_and_install/docker_install_cn.rst +++ b/doc/getstarted/build_and_install/docker_install_cn.rst @@ -155,7 +155,7 @@ PaddlePaddle Book是为用户和开发者制作的一个交互式的Jupyter Node .. code-block:: bash - docker build -t paddle:prod -f build/Dockerfile . + docker build -t paddle:prod -f build/Dockerfile ./build 以上命令会按照生成的Dockerfile把生成的程序拷贝到生产镜像中并做相应的配置,最终生成名为paddle:prod的生产镜像。 diff --git a/doc/getstarted/build_and_install/docker_install_en.rst b/doc/getstarted/build_and_install/docker_install_en.rst index b6a9dd963c6..03df4975060 100644 --- a/doc/getstarted/build_and_install/docker_install_en.rst +++ b/doc/getstarted/build_and_install/docker_install_en.rst @@ -210,7 +210,7 @@ compiling tools and dependencies. .. code-block:: bash - docker build -t paddle:prod -f build/Dockerfile . + docker build -t paddle:prod -f build/Dockerfile ./build The above command will generate the production image by copying the compiled PaddlePaddle program into the image. diff --git a/paddle/scripts/docker/README.md b/paddle/scripts/docker/README.md index b45d92507c1..76bc30e59b8 100644 --- a/paddle/scripts/docker/README.md +++ b/paddle/scripts/docker/README.md @@ -119,7 +119,7 @@ Users can specify the following Docker build arguments with either "ON" or "OFF" The following command builds the production image: ```bash -docker build -t paddle -f build/Dockerfile . +docker build -t paddle -f build/Dockerfile ./build ``` This production image is minimal -- it includes binary `paddle`, the shared library `libpaddle.so`, and Python runtime. diff --git a/paddle/scripts/docker/build.sh b/paddle/scripts/docker/build.sh index bf4e1f3d6e8..10bd9d0a6da 100644 --- a/paddle/scripts/docker/build.sh +++ b/paddle/scripts/docker/build.sh @@ -99,7 +99,7 @@ fi cat >> /paddle/build/Dockerfile <