This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/pkg/universe.dagger.io/x/olli.janatuinen@gmail.com/dotnet/container.cue
Olli Janatuinen 65db7e9824 feat: support .NET
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
2022-04-06 23:10:38 +02:00

32 lines
502 B
CUE

// .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
}
}
}