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
2022-04-20 17:52:26 +02:00

30 lines
442 B
CUE

package rust
import (
"dagger.io/dagger"
"universe.dagger.io/docker"
)
#Container: {
// Container name
name: *"rust_publisher" | string
// Source code
source: dagger.#FS
// Rust image
_image: #Image
_sourcePath: "/src"
docker.#Run & {
input: *_image.output | docker.#Image
workdir: _sourcePath
command: name: "cargo"
mounts: "source": {
dest: _sourcePath
contents: source
}
}
}