diff --git a/stdlib/docker/container.cue b/stdlib/docker/container.cue index cdf3c528..1b7322b4 100644 --- a/stdlib/docker/container.cue +++ b/stdlib/docker/container.cue @@ -86,6 +86,12 @@ import ( } env: PATH: string | *strings.Join([ for p, v in shell.search if v {p}], ":") + // Export values from the container to the cue configuration + export: *null | { + source: string + format: op.#Export.format + } + #up: [ op.#Load & {from: image}, // Copy volumes with type=copy @@ -122,5 +128,11 @@ import ( op.#Subdir & { dir: outputDir }, + if export != null { + op.#Export & { + source: export.source + format: export.format + } + }, ] }