I\'am setting up a new dockerfile and docker-compose.yml. I\'ll below show first my file structure with rails and I want to use a new .dockerignore to ignore node_modul
I faced the same problem with docker build, node_modules directories were not being ignored.
docker build
node_modules
SOLUTION Changing node_modules to **/node_modules inside .dockerignore solved my issue.
**/node_modules
.dockerignore