Skip to content

Add support for --build-args #2111

@kismet010

Description

@kismet010

As this moby/moby#15182 functionality has been merged, it would be great to manage with Compose

I.e.:

Dockerfile with default variables

ARG vhost=default.com
RUN echo $vhost > ...

Overriding through docker-composer.yml

web:
  build: ...
  arguments:
    - vhost: dev.com

Or an hierarchy of extended environments

production:
  extends: web
  arguments:
    - vhost: my-final-domain.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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