Skip to content

Commit 8f79efc

Browse files
author
yi.wu
committed
update README
1 parent 3569466 commit 8f79efc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

paddle/scripts/docker/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,24 +94,21 @@ docker build -t paddle:dev --build-arg UBUNTU_MIRROR=mirror://mirrors.ubuntu.com
9494
Given the development image `paddle:dev`, the following command builds PaddlePaddle from the source tree on the development computer (host):
9595

9696
```bash
97-
docker run -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "TEST=OFF" \
98-
-e "BUILD_AND_INSTALL=ON" -e "DELETE_BUILD_CACHE=ON" paddle:dev
97+
docker run -v $PWD:/paddle -e "WITH_GPU=OFF" -e "WITH_AVX=ON" -e "TEST=OFF" paddle:dev
9998
```
10099

101100
This command mounts the source directory on the host into `/paddle` in the container, so the default entry point of `paddle:dev`, `build.sh`, could build the source code with possible local changes. When it writes to `/paddle/build` in the container, it writes to `$PWD/build` on the host indeed.
102101

103102
`build.sh` builds the following:
104103

105104
- PaddlePaddle binaries,
106-
- `$PWD/dist/<cpu|gpu|cpu-noavx|gpu-noavx>/paddle-<version>.deb` for production installation, and
105+
- `$PWD/build/paddle-<version>.deb` for production installation, and
107106
- `$PWD/build/Dockerfile`, which builds the production Docker image.
108107

109108
Users can specify the following Docker build arguments with either "ON" or "OFF" value:
110109
- `WITH_GPU`: ***Required***. Generates NVIDIA CUDA GPU code and relies on CUDA libraries.
111110
- `WITH_AVX`: ***Required***. Set to "OFF" prevents from generating AVX instructions. If you don't know what is AVX, you might want to set "ON".
112111
- `TEST`: ***Optional, default OFF***. Build unit tests and run them after building.
113-
- `BUILD_AND_INSTALL`: ***Optional, default ON***. Run `make` and `make install`.
114-
- `DELETE_BUILD_CACHE`: ***Optional, default ON***. If set to "ON", the building script will delete, download, and re-build third party libraries.
115112

116113
### Build the Production Docker Image
117114

0 commit comments

Comments
 (0)