22 lines
285 B
CUE
22 lines
285 B
CUE
|
|
package rust
|
|
|
|
import (
|
|
"universe.dagger.io/docker"
|
|
)
|
|
|
|
// rust image default version
|
|
_#DefaultVersion: "1.60"
|
|
|
|
// Pull rust base image
|
|
#Image: {
|
|
version: *_#DefaultVersion | string
|
|
docker.#Build & {
|
|
steps: [
|
|
docker.#Pull & {
|
|
source: "rust:\(version)-alpine"
|
|
},
|
|
]
|
|
}
|
|
}
|