Skip to content

Commit

Permalink
docs: add bind mount output info to dockerfile->llb docs
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Aug 16, 2022
1 parent 2f2faaf commit 07357d6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/dev/dockerfile-llb.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,18 @@ your local state, which is specified through the `llb.Local` state object:
llb.FollowPaths([]string{"."}),
)

st = st.Dir("/builder").Run(
execState = st.Dir("/builder").Run(
llb.Shlex("pip install ."),
llb.AddEnv(
"PIP_INDEX_URL",
"https://my-proxy.com/pypi",
),
llb.AddMount("/builder", localState)
).Root()
)
_ := execState.AddMount("/builder", localState)
// the return value of AddMount captures the resulting state of the mount
// after the exec operation has completed

st := execState.Root()
```

## Cache mounts
Expand Down

0 comments on commit 07357d6

Please sign in to comment.