Public | Automated Build

Last pushed: 17 days ago
Short Description
Build dotnet app based on docker image
Full Description



Supported tags and respective Dockerfile links

Introduction

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

  • .NET Core SDK
  • Nodejs
  • 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 "
Docker Pull Command
Owner
eswork
Source Repository

Comments (0)