d55088c612
BREAKING CHANGE: Adjust imports for for `#Ref`, `#ImageConfig` and `#HealthCheck`. Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
26 lines
363 B
CUE
26 lines
363 B
CUE
package docker
|
|
|
|
import (
|
|
"dagger.io/dagger/core"
|
|
)
|
|
|
|
// Change image config
|
|
#Set: {
|
|
// The source image
|
|
input: #Image
|
|
|
|
// The image config to change
|
|
config: core.#ImageConfig
|
|
|
|
_set: core.#Set & {
|
|
"input": input.config
|
|
"config": config
|
|
}
|
|
|
|
// Resulting image with the config changes
|
|
output: #Image & {
|
|
rootfs: input.rootfs
|
|
config: _set.output
|
|
}
|
|
}
|