Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine 2022-01-27 13:27:28 -07:00
parent 6db42168e4
commit 0de625e1c3
2 changed files with 4 additions and 6 deletions

View File

@ -154,17 +154,17 @@ import (
let k = split[0] let k = split[0]
let v = split[1] let v = split[1]
if env[k] == _|_ { if env[k] == _|_ {
"env": "\(k)": v env: "\(k)": v
} }
} }
} }
"workdir": workdir "workdir": workdir
if workdir == _|_ && _image.config.WorkingDir != _|_ { if workdir == _|_ && _image.config.WorkingDir != _|_ {
"workdir": _image.config.WorkingDir workdir: _image.config.WorkingDir
} }
"user": user "user": user
if user == _|_ && _image.config.User != _|_ { if user == _|_ && _image.config.User != _|_ {
"user": _image.config.User user: _image.config.User
} }
} }
} }

View File

@ -27,9 +27,7 @@ dagger.#Plan & {
} }
run: docker.#Run & { run: docker.#Run & {
image: myimage image: myimage
cmd: { cmd: name: "ls"
name: "ls"
}
export: files: { export: files: {
"/dagger.txt": _ & { "/dagger.txt": _ & {
contents: "not hello from dagger" contents: "not hello from dagger"