java docker
Hey guys! I'm facing an issue, maybe someone has encountered this and can offer a solution.
I have two microservices running in Docker, and the entire build process is automated. I also have a separate folder with a common
module that contains shared classes for both microservices. When I run the project locally without Docker, everything works fine — the dependencies are properly linked.
However, when I run the same project through Docker, I get an error: Docker cannot find the common
module and doesn't recognize it as a dependency. When I try to add it via volumes or create a separate Dockerfile for the common
module, a different error occurs.
I’ve tried several approaches, but nothing has worked. Has anyone can suggest a solution?