mirror of https://github.com/docker/cli.git
builder: add an option for specifying build target
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
3ac3a56f1c
commit
6dc427fb61
|
@ -95,6 +95,7 @@ func (cli *Client) imageBuildOptionsToQuery(options types.ImageBuildOptions) (ur
|
||||||
query.Set("cgroupparent", options.CgroupParent)
|
query.Set("cgroupparent", options.CgroupParent)
|
||||||
query.Set("shmsize", strconv.FormatInt(options.ShmSize, 10))
|
query.Set("shmsize", strconv.FormatInt(options.ShmSize, 10))
|
||||||
query.Set("dockerfile", options.Dockerfile)
|
query.Set("dockerfile", options.Dockerfile)
|
||||||
|
query.Set("target", options.Target)
|
||||||
|
|
||||||
ulimitsJSON, err := json.Marshal(options.Ulimits)
|
ulimitsJSON, err := json.Marshal(options.Ulimits)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue