Skip to content

Commit 50ab872

Browse files
helinwangreyoung
authored andcommitted
make docker build command for building prodction image more precise
1 parent 3514983 commit 50ab872

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

doc/getstarted/build_and_install/docker_install_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ PaddlePaddle Book是为用户和开发者制作的一个交互式的Jupyter Node
155155

156156
.. code-block:: bash
157157
158-
docker build -t paddle:prod -f build/Dockerfile .
158+
docker build -t paddle:prod -f build/Dockerfile ./build
159159
160160
以上命令会按照生成的Dockerfile把生成的程序拷贝到生产镜像中并做相应的配置,最终生成名为paddle:prod的生产镜像。
161161

doc/getstarted/build_and_install/docker_install_en.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ compiling tools and dependencies.
210210

211211
.. code-block:: bash
212212
213-
docker build -t paddle:prod -f build/Dockerfile .
213+
docker build -t paddle:prod -f build/Dockerfile ./build
214214
215215
The above command will generate the production image by copying the compiled PaddlePaddle program into the image.
216216

paddle/scripts/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Users can specify the following Docker build arguments with either "ON" or "OFF"
119119
The following command builds the production image:
120120

121121
```bash
122-
docker build -t paddle -f build/Dockerfile .
122+
docker build -t paddle -f build/Dockerfile ./build
123123
```
124124

125125
This production image is minimal -- it includes binary `paddle`, the shared library `libpaddle.so`, and Python runtime.

paddle/scripts/docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ fi
9999

100100
cat >> /paddle/build/Dockerfile <<EOF
101101
# Use different deb file when building different type of images
102-
ADD build/*.deb /
102+
ADD *.deb /
103103
# run paddle version to install python packages first
104104
RUN apt-get update &&\
105105
apt-get install -y python-pip && pip install -U pip && \

0 commit comments

Comments
 (0)