Docker Ignore is not woking well with docker compose and my file structure

后端 未结 3 606
走了就别回头了
走了就别回头了 2021-02-06 13:21

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

3条回答
  •  遥遥无期
    2021-02-06 13:32

    I faced the same problem with docker build, node_modules directories were not being ignored.

    SOLUTION
    Changing node_modules to **/node_modules inside .dockerignore solved my issue.

提交回复
热议问题