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/docker/set.cue
Helder Correia 9e33a09903
Add docker.#Set for updating image metadata
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-01-31 22:44:55 -01:00

26 lines
369 B
CUE

package docker
import (
"dagger.io/dagger/engine"
)
// Change image config
#Set: {
// The source image
input: #Image
// The image config to change
config: engine.#ImageConfig
_set: engine.#Set & {
"input": input.config
"config": config
}
// Resulting image with the config changes
output: #Image & {
rootfs: input.rootfs
config: _set.output
}
}