Skip to content

Allow files and paths to be ignored when uploading context #2224

@jellybob

Description

@jellybob

I'm attempting to Dockerize a fairly large Rails application, with the intent that during development I can just run docker build locally, while for deployment the CI server will do so.

In either case though it currently picks up things like the log directory, which can grow to several gigabytes of large files which I'm never going to want included in an image.

Is it possible to tell Docker to ignore that directory when uploading the build context? If not, what would be involved in making it happen? I've never used Go, but given a pointer in the right direction I'm happy to give it a shot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions