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

32 lines
502 B
CUE
Raw Normal View History

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