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/contact@kjuulh.io/rust/container.cue

30 lines
441 B
CUE
Raw Normal View History

2022-04-19 22:45:36 +02:00
package rust
import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)
#Container: {
// Container publisher
name: *"rust_publisher" | string
// Source code
source: dagger.#FS
// Rust image
_image: #Image
_sourcePath: "/src"
docker.#Run & {
input: *_image.output | docker.#Image
workdir: "/src"
command: name: "rust"
mounts: "source": {
dest: _sourcePath
contents: source
}
}
}