Skip to content

local builds should respect .gitignore ? #268

@spMohanty

Description

@spMohanty

I somehow expected that when building a local repository, repo2docker will respect .gitignore and not package the ignored files/directories in the image itself.

The use case where this was inconvenient was, when I had a data/ folder in my source code, which was ignored by git based on the pathspecs in .gitignore.
The folder in my dev environment contained about 16gb of data in the data/ folder, and repo2docker ended up copying over all that data into the image (and also because of this issue, the actual image size ended up being around 35GB 😢 ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    user-supportQuestions on using repo2docker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions