mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
27 lines
385 B
CUE
Executable File
Generated
27 lines
385 B
CUE
Executable File
Generated
package docker
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"dagger.io/dagger/core"
|
|
)
|
|
|
|
// Change image config
|
|
#Set: {
|
|
// The source image
|
|
input: #Image
|
|
|
|
// The image config to change
|
|
config: dagger.#ImageConfig
|
|
|
|
_set: core.#Set & {
|
|
"input": input.config
|
|
"config": config
|
|
}
|
|
|
|
// Resulting image with the config changes
|
|
output: #Image & {
|
|
rootfs: input.rootfs
|
|
config: _set.output
|
|
}
|
|
}
|