通过 Docker 构建项目
您可以直接使用 Docker 来构建整个项目,无需手动安装 JDK 或 Node.js 等依赖环境,简化构建流程。
构建步骤
shell
cd orion-visor/docker
# 构建项目
sh project-build.sh --build-ui --build-service
参数 | 别名 | 描述 |
---|---|---|
-ui | --build-ui | 构建 orion-visor-ui 并且输出至原目录 |
-service | --build-service | 构建 orion-visor-service 并且输出至原目录 |
构建镜像
shell
cd orion-visor/docker
# 构建镜像
sh docker-build.sh --locally --latest-image --push-image --build-ui --build-service
参数 | 别名 | 描述 |
---|---|---|
-l | --locally | 使用 docker 构建镜像时去除 BuildKit 的 --platform=$BUILDPLATFORM |
-latest | --latest-image | 是否将此版本定义为 latest |
-push | --push-image | 是否推送镜像 |
-ui | --build-ui | 构建 orion-visor-ui 并且输出至原目录 |
-service | --build-service | 构建 orion-visor-service 并且输出至原目录 |