# dotnet 代码构建制品上传示例 当前仓库,用于演示(详见 `.cnb.yml`): - `dotnet` 代码如何构建镜像并发布到 CNB Docker 仓库。 ![badge](https://cnb.cool/devopschina/dotnet-build/-/badge/git/latest/ci/pipeline-as-code) ![badge](https://cnb.cool/devopschina/dotnet-build/-/badge/git/latest/ci/git-clone-yyds) ![badge](https://cnb.cool/devopschina/dotnet-build/-/badge/git/latest/ci/status/push) ## 示例说明 - `Dockerfile`: 构建镜像 - `.cnb.yml`: ci 配置文件 - `README.md`: 说明文件 ## Docker 镜像 镜像:`docker.cnb.cool/devopschina/dotnet-build/dotnetapp:latest` [Docker 制品详情](https://cnb.cool/devopschina/dotnet-build/-/packages/docker/dotnet-build/dotnetapp) 如何使用: ```shell docker pull docker.cnb.cool/devopschina/dotnet-build/dotnetapp:latest docker run docker.cnb.cool/devopschina/dotnet-build/dotnetapp:latest ```