Skip to content

Add support for configuring additional build contexts #306

@laurazard

Description

@laurazard

What is the problem you're trying to solve

BuildKit added the --build-context argument to enable users to provide additional build contexts during a build. More documentation about this can be found here.

Describe the solution you'd like

Being able to configure additional build contexts in a Compose file, such as:

services:
  a:
    build:
      context: .
      build_contexts:
        - project=[a directory/image/etc.]

Used together with a Dockerfile such as:

# syntax=docker/dockerfile:1
FROM alpine:latest
COPY --from=project . /

Additional context
Add any other context about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions