image/spec: add missing "Shell" field (v1.2)

This field was added in b18ae8c9cc, which
was part of v1.12.0-rc1 and later, which used image spec v1.2.0.

This patch amends the v1.2 spec to include the missing field.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-08-30 14:33:11 +02:00
parent 5380f3f0c4
commit 7b7019a4da
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -427,6 +427,17 @@ whitespace. It has been added to this example for clarity.
downstream build, as if it had been inserted immediately after
the *FROM* instruction in the downstream Dockerfile.
</dd>
<dt>
Shell <code>array of strings</code>
</dt>
<dd>
Override the default shell used for the *shell* form of
commands during "build". The default shell on Linux is
<code>["/bin/sh", "-c"]</code>, and <code>["cmd", "/S", "/C"]</code>
on Windows. This field is set by the <code>SHELL</code>
instruction in a Dockerfile, and *must* be written in JSON
form.
</dd>
</dl>
</dd>
<dt>