Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I ignore a file in volume?

I use git submodules to make it easier to create a docker-compose file to work on my laptop.

I mount each submodule via volume.

As a result, each service is present at the top level .git file with a link to the parent repository.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

One of the projects uses a private package distributed via npm. When trying to download the yarn package, it crashes with an error because it uses git and git cannot find the parent repository.

How can I fix this?

>Solution :

You have to create a file .dockerignore a put .git inside it.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading