Skip to content

Commit 36da882

Browse files
README: Demonstrate how to use IMAGE_ARG
This change is to help prevent users from attempting `FROM base_image` when correct usage is `ARG base_image` followed by `FROM ${base_image}`. Signed-off-by: Charles Duffy <[email protected]>
1 parent 9c2df86 commit 36da882

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ _(As a convention in the list below, all task parameters are specified with a
114114
name. For example, `IMAGE_ARG_base_image=ubuntu/image.tar` will set
115115
`base_image` to a local image reference for using `ubuntu/image.tar`.
116116
117+
This must be accepted as an argument for use; for example:
118+
119+
```
120+
ARG base_image
121+
FROM ${base_image}
122+
```
123+
117124
* `$IMAGE_PLATFORM`: Specify the target platform to build the image for. For
118125
example `IMAGE_PLATFORM=linux/arm64` will build the image for the Linux OS
119126
and `arm64` architecture. By default, images will be built for the current

0 commit comments

Comments
 (0)