dockerignore generator for monorepo.
go install github.com/orisano/dignore@latest
$ ls -1
serviceA
serviceB
serviceC
serviceD
serviceE
$ dignore -o - serviceA serviceB
serviceA/some_rules
serviceB/node_modules
serviceC
serviceD
serviceE
$ dignore serviceA serviceB
$ docker build -f serviceA/Dockerfile .
or
$ docker run orisano/dignore serviceA serviceB
Nao Yonashiro (@orisano)
MIT