Skip to content

Support multiple build contexts #9461

@ciaranmcnulty

Description

@ciaranmcnulty

Dockerfile 1.4 supports multiple build contexts - a way to specify them when building in compose would be great

I'd suggest something like:

services:
   myapp:
    build:
        contexts:
            additional: ../foo
            deps: https://github.com/myvendor/deps
            dist: https://somedistro.info/download/latest.tar.gz

Being able to drive this from environment / .env could be very powerful

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions