Build dotnet app based on docker image
2.1K
Dockerfile links基于docker image编译.NET应用程序
一个build.sh工程构建脚本
#!/bin/sh
set -e
basepath=$(cd `dirname $0`; pwd)
dotnet restore ${basepath}
dotnet build ${basepath}
dotnet pack -c release ${basepath}
定义docker-build.sh脚本,挂载到容器上执行build.sh操作
basepath=$(cd `dirname $0`; pwd)
docker run --rm \
-v ${basepath}:/dotnet-build \
eswork/dotnet-build \
sh -c "chmod 755 /dotnet-build/build.sh && /dotnet-build/build.sh "
Content type
Image
Digest
Size
799.8 MB
Last updated
over 7 years ago
docker pull eswork/dotnet-build