Skip to content

Proposal: Dockerfile add BIND_CONTEXT #3056

@amluto

Description

@amluto

Currently I have mostly-useless commands in my Dockerfile like
ADD stuff /docker_setup
RUN /docker_setup/install.sh && rm -rf /docker_setup

This is ugly. Can we have:
BIND_CONTEXT /docker_context
RUN /docker_context/stuff/install.sh

I'm not picky about the syntax. I want to have docker build do what docker run -v does, but during the build process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions