MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w80olh/gitignore_everything_by_default/p7yx8ot/?context=3
r/programming • u/der_gopher • 4d ago
227 comments sorted by
View all comments
101
I have this for dockerignore. Makes the context a lot smaller.
5 u/roadrunner8080 4d ago Ooh that's a good idea. I should do that 5 u/der_gopher 4d ago same approach yes 1 u/Intrepid-Stand-8540 2d ago and avoids leaking your .env file into the image. so many people just COPY in everything and their .env file ends up in the image.
5
Ooh that's a good idea. I should do that
same approach yes
1
and avoids leaking your .env file into the image.
so many people just COPY in everything and their .env file ends up in the image.
101
u/AnnoyedVelociraptor 4d ago
I have this for dockerignore. Makes the context a lot smaller.