0

In a Lando setup my project folder looks like this:

.lando.yml
lando/
    Dockerfile
    .dockerignore
    // ... more config folders
htdocs/
    vendor/
    node_modules/
    var/
        cache/

In my .dockerignore I have this

# .dockerignore
.DS_Store
**/htdocs/vendor
**/htdocs/var
**/htdocs/node_modules

But Lando also has a parameter called "excludes" where I can define folders to be excluded

# .lando.yml
name: my-project
recipe: symfony
excludes:
    - htdocs/vendor
    - htdocs/var
    - htdocs/node_modules
config:
    ...
services:
    ...

Now my question is, should I use both .dockerignore and the "excludes"? Or is one option better than the other?

Julesezaar
  • 2,658
  • 1
  • 21
  • 21

0 Answers0