提交 50ab8723 编写于 作者: H Helin Wang 提交者: Yu Yang

make docker build command for building prodction image more precise

上级 3514983d
......@@ -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的生产镜像。
......
......@@ -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.
......
......@@ -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.
......
......@@ -99,7 +99,7 @@ fi
cat >> /paddle/build/Dockerfile <<EOF
# Use different deb file when building different type of images
ADD build/*.deb /
ADD *.deb /
# run paddle version to install python packages first
RUN apt-get update &&\
apt-get install -y python-pip && pip install -U pip && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册