Merge pull request #133 from dagger/go-no-copy
stdlib: go: mount source rather than copying
This commit is contained in:
commit
5e6d850172
@ -21,12 +21,7 @@ import (
|
|||||||
dagger.#FetchContainer & {
|
dagger.#FetchContainer & {
|
||||||
ref: "docker.io/golang:\(version)-alpine"
|
ref: "docker.io/golang:\(version)-alpine"
|
||||||
},
|
},
|
||||||
dagger.#Copy & {
|
|
||||||
from: source
|
|
||||||
dest: "/src"
|
|
||||||
},
|
|
||||||
dagger.#Exec & {
|
dagger.#Exec & {
|
||||||
dir: "/src"
|
|
||||||
"args": ["go"] + args
|
"args": ["go"] + args
|
||||||
|
|
||||||
env: env
|
env: env
|
||||||
@ -38,6 +33,9 @@ import (
|
|||||||
GOPATH: "/go"
|
GOPATH: "/go"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dir: "/src"
|
||||||
|
mount: "/src": from: source
|
||||||
|
|
||||||
mount: "/root/.cache": "cache"
|
mount: "/root/.cache": "cache"
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user