Create a separate service with all the GPL codes. Write your own micro service API to communicate with it. And then open source your micro service code without opening up your propitiatory part.
Of course someone else should have thought of it before. Searched and found first hit on stackoverflow. That says it's OK at least when used in a separate VM, no shared memory between the two.
https://law.stackexchange.com/questions/40420/gpl-licensed-c...