Location for common .dockerignore file

Advertisements I’d like a common .dockerignore file, "outside" a build context (which I assume is the directory in which the Dockerfile is located). So instead of this: project/ client/ src/ .dockerignore Dockerfile server/ src/ .dockerignore Dockerfile I prefer this: project/ client/ src/ Dockerfile server/ src/ Dockerfile .dockerignore Is that allowed? Will it walk up the… Read More Location for common .dockerignore file

Issues with ignoring docker context using .dockerignore

Advertisements . ├── A └── B ├── .dockerignore ├── Dockerfile └── run_script.sh My folder structure looks similar to the above tree. I have a Dockerfile, and a .dockerignore file. I use the run-script to build my docker image. In the build, i send the entire context from the root. So, effectively, the context contains both… Read More Issues with ignoring docker context using .dockerignore