feat: support .NET

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
This commit is contained in:
Olli Janatuinen
2022-04-03 15:12:15 +02:00
parent f3ac279f73
commit 65db7e9824
15 changed files with 304 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
// .NET operation
package dotnet
import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)
// A standalone dotnet environment to run dotnet command
#Container: {
// Container app name
name: *"dotnet_publisher" | string
// Source code
source: dagger.#FS
// Use dotnet image
_image: #Image
_sourcePath: "/src"
docker.#Run & {
input: *_image.output | docker.#Image
workdir: "/src"
command: name: "dotnet"
mounts: "source": {
dest: _sourcePath
contents: source
}
}
}