Skip to content

Support passing --local context=FILE #6410

@fenollp

Description

@fenollp

Description

Today one can only pass directories as local build contexts. I would like to be able to pass a file path as well.

A few workarounds:

  • Write a .dockerignore to disk in the right place
  • Copy the file to an empty dir and use it as context

Both of these require disk operations however.

If added, this capability should be mentioned at (the great BTW) https://docs.docker.com/build/concepts/context/

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions