I have a multi-module maven project like:
myProject
- /module1 (angular)
- package.json
- pom.xml
- /module2 (java)
- /target
- pom.xml
- pom.xml
I tried:
One Dockerfile multistage like :multi-module Maven project on Dockers => it's doesn't work because of permission denied with yarn install.
Two Dockerfiles, one for front (with a yarn install directly), and the second for the rest (back and parent maven project) => the image of front is empty as if it doesn't accept a yarn install inside a maven module.
Four DockerFiles, one for every pom.xml a Dockerfile => problem with strong coupling dependencies with front and back
Do you have any other ideas please or solutions?