Skip to content

Allow options when building and using an image instead of a Dockerfile #922

Open
@Roemer

Description

@Roemer

There is a build.options property that allows adding additional command line arguments to the Docker command while building. For example:

{
    "build": {
        "dockerfile": "Dockerfile",
        "options": [
            "--add-host=host.docker.internal:host-gateway"
        ]
    },
    "features": {
        ...
    }
}

This works great. But often the base is just an image and features are just installed while building. So there would be the following:

{
    "image": "debian:11",
    "build": {
        "options": [
            "--add-host=host.docker.internal:host-gateway"
        ]
    },
    "features": {
        ...
    }
}

This unfortunately does not work as image and build are not allowed together. It would be great if either the optionswould work withimageor therunArgs` or a separate property would exist to pass additional command line options.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions