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 v = split[1]
if env[k] == _|_ {
"env": "\(k)": v
env: "\(k)": v
}
}
}
"workdir": workdir
if workdir == _|_ && _image.config.WorkingDir != _|_ {
"workdir": _image.config.WorkingDir
workdir: _image.config.WorkingDir
}
"user": 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 & {
image: myimage
cmd: {
name: "ls"
}
cmd: name: "ls"
export: files: {
"/dagger.txt": _ & {
contents: "not hello from dagger"