dockerfile-plus icon indicating copy to clipboard operation
dockerfile-plus copied to clipboard

Honor .dockerignore file

Open Ri0n opened this issue 4 years ago • 2 comments

Hi I'm writing a rust application and start it both in a container and locally. I added to .dockerignore file to not transfer target (local) into docker context and it seems to work well regular docker build, but with Dockerfile-plus it seems to transfer 5Gb context anyway. Of course I can workaround this by explicitly setting the target directory for my local builds but it's a little inconvenient.

Ri0n avatar Sep 07 '21 09:09 Ri0n

Same issue here, and I'm working on an ML project with +100gb of data

jedzill4 avatar Oct 04 '21 18:10 jedzill4

Yes, using INCLUDE+ the .dockerignore is ignored when transferring context. This causes massive build delays when there's large data in the repository or when using a .venv.

sachdiSICKAG avatar Mar 31 '23 12:03 sachdiSICKAG