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

29 lines
420 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
2022-04-20 16:23:28 +02:00
workdir: _sourcePath
2022-04-19 22:45:36 +02:00
mounts: "source": {
dest: _sourcePath
contents: source
}
}
}