Fork自 PaddlePaddle / Paddle
#!/bin/bash BINARIES_DIR=paddle/scripts/docker/buildimage/binaries function build_in_docker() { docker build . -t paddle-build-env -f paddle/scripts/docker/buildimage/Dockerfile.build BUILDER=$(docker run -d paddle-build-env) docker exec $BUILDER /bin/bash -c "export BUILD_AND_INSTALL=ON && /paddle/paddle/scripts/docker/build.sh" mkdir -p $BINARIES_DIR docker cp $BUILDER:/usr/local/opt/paddle/bin/paddle_pserver_main $BINARIES_DIR docker cp $BUILDER:/usr/local/opt/paddle/bin/paddle_trainer $BINARIES_DIR docker cp $BUILDER:/usr/local/opt/paddle/bin/paddle_merge_model $BINARIES_DIR docker cp $BUILDER:/usr/local/bin/paddle $BINARIES_DIR docker cp $BUILDER:/usr/local/opt/paddle/bin/paddle_usage $BINARIES_DIR docker cp $BUILDER:/usr/local/opt/paddle/share/wheels $BINARIES_DIR docker stop $BUILDER && docker rm $BUILDER } function build_paddle_core() { docker build . -t paddle-core -f paddle/scripts/docker/paddle-core/Dockerfile } build_in_docker build_paddle_core