Files
FastDeploy/serving/docs/zh_CN/compile.md
heliqi c30df2021f [Serving]cpu images fix python core (#401)
serving cpu fix python core
2022-10-20 11:55:15 +08:00

976 B
Raw Blame History

服务化部署镜像编译

本文档介绍如何制作FastDploy镜像

制作GPU镜像

FastDploy发布的GPU镜像基于Triton Inference Server的21.10版本进行制作如果有其他CUDA版本需求可以参照NVIDIA 官网中展示的版本信息修改Dockerfile和scripts中的脚本.

# 进入serving目录执行脚本编译fastdeply和服务化的backend
cd serving
bash scripts/build.sh

# 退出到FastDeploy主目录制作镜像
cd ../
docker build -t paddlepaddle/fastdeploy:0.3.0-gpu-cuda11.4-trt8.4-21.10 -f serving/Dockerfile .

制作CPU镜像

# 进入serving目录执行脚本编译fastdeply和服务化的backend
cd serving
bash scripts/build.sh OFF

# 退出到FastDeploy主目录制作镜像
cd ../
docker build -t paddlepaddle/fastdeploy:0.3.0-cpu-only-21.10 -f serving/Dockerfile_cpu .