Skip to content

Proposal: new build config section #2163

@dnephin

Description

@dnephin

Motivation for this proposal

Proposal

Move all build related configuration into a build: section in the service. Example

web:
  build:
    context: .
    dockerfile: Dockerfile.name
    args:
       key: value
  ...

This should help clarify the fields that are related to the build phase (and the fields that are not).

Backwards compatibility

On the first release both build and dockerfile would still be allowed at the top level of the service definition. A dockerfile at the top level would print a deprecation warning.

On the following release dockerfile at the top level of the service definition would be removed, and it must be under the build section. For trivial cases, a config of build: path/to/context would still be supported.

Related #2111

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions