Sign inSign up

eswork/dotnet-build

By eswork

•Updated over 7 years ago

Build dotnet app based on docker image

Image
0

2.1K

eswork/dotnet-build repository overview

Build Status


⁠Introduction

基于docker image编译.NET应用程序

  • .NET Core SDK
  • Nodejs
  • Npm
  • Yarn
  • bower
  • glup
  • webpack

⁠Quickstart

一个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 "

Tag summary

Content type

Image

Digest

Size

799.8 MB

Last updated

over 7 years ago

docker pull eswork/dotnet-build