diff --git a/doc/getstarted/build_and_install/docker_install_cn.rst b/doc/getstarted/build_and_install/docker_install_cn.rst index e35dc6aaef090dc22a6558515c281c9c8fc821cb..da2d4234658b6ea4730346e721437cc1633c4362 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 b6a9dd963c603ebd2950e94c65d3e0c64a410b44..03df497506099d2fb758bd0ab437d2c082f2b537 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 b45d92507c1745b759319e20e8ec0790caf4db13..76bc30e59b869d705b6188592b2983ed01114046 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 959cdd14f8898b5115890c289be917995319764c..a750c436dc50f906a35313490f667d9a24cc0c00 100644 --- a/paddle/scripts/docker/build.sh +++ b/paddle/scripts/docker/build.sh @@ -116,7 +116,7 @@ RUN ${MIRROR_UPDATE} pip install --upgrade pip && \ pip install -U 'protobuf==3.1.0' requests numpy # Use different deb file when building different type of images -ADD build/*.deb /usr/local/opt/paddle/deb/ +ADD *.deb /usr/local/opt/paddle/deb/ # run paddle version to install python packages first RUN dpkg -i /usr/local/opt/paddle/deb/*.deb && \ rm -f /usr/local/opt/paddle/deb/*.deb && \