Skip to content

Ability to copy files from parent directories #1221

@bkendzior

Description

@bkendzior

I'm curious if there's a way to change the build context when running earthly.

i.e. my repository is organized as such:

/repo_root
|- ./docker
 |- Earthfile
 |- configurations, scripting, etc
|- ./src
 |- code I want to COPY into my container

docker build allows for you to specify a build context of .. for this particular use-case, curious if Earthly supports anything similar or if the build context is purely an artifact of the placement of the Earthfile

Earthly maintainer edit: Please see resolution in comment below #1221 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:composabilityUse-cases related to build code reuse, in general and DRY (do-not-repeat-yourself) principlestype:enhancementSmall feature requests / adjustments

    Type

    No type

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions