Skip to content

Commit 23a2b6f

Browse files
authored
Merge pull request moby#5333 from ryio1010/frontend-fix-doller
frontend/dockerfile/docs: add $ in mount env example
2 parents 7e4a085 + 855e120 commit 23a2b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ environment variable with the same name.
842842
# syntax=docker/dockerfile:1
843843
FROM alpine
844844
RUN --mount=type=secret,id=API_KEY,env=API_KEY \
845-
some-command --token-from-env API_KEY
845+
some-command --token-from-env $API_KEY
846846
```
847847

848848
Assuming that the `API_KEY` environment variable is set in the build

0 commit comments

Comments
 (0)