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/stdlib/docker/image.cue
Solomon Hykes 647e4c898b stdlib: improved Docker package
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 15:41:36 -07:00

42 lines
606 B
CUE

package docker
import (
"dagger.io/dagger"
"dagger.io/dagger/op"
)
// Build a Docker image from source, using included Dockerfile
#ImageFromSource: {
source: dagger.#Artifact
#up: [
op.#DockerBuild & {
context: source
},
]
}
// Fetch an image from a remote registry
#ImageFromRegistry: {
ref: string
#up: [
op.#FetchContainer & {
"ref": ref
},
]
}
// Build a Docker image from the provided Dockerfile contents
#ImageFromDockerfile: {
dockerfile: string
context: dagger.#Artifact
#up: [
op.#DockerBuild & {
"context": context
"dockerfile": dockerfile
},
]
}