stdlib: docker: default image for simple use cases
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
00710fe387
commit
2d778ea2a7
@ -8,13 +8,21 @@ import (
|
||||
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/dagger/op"
|
||||
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
// Default image for basic use cases
|
||||
// FIXME: should just be 'alpine.#Image'.
|
||||
// referring to '#.up' is a workaround to a dagger engine bug.
|
||||
// see https://github.com/dagger/dagger/issues/304
|
||||
#DefaultImage: alpine.#Image.#up
|
||||
|
||||
// Run a Docker container
|
||||
#Container: {
|
||||
|
||||
// Container image
|
||||
image: dagger.#Artifact
|
||||
image: dagger.#Artifact | *#DefaultImage
|
||||
|
||||
// Independently cacheable setup commands
|
||||
setup: [...string]
|
||||
|
Reference in New Issue
Block a user