Hi @jacob1, let us know if you managed to resolve this issue or not. If you could share a minimal version of your dockerfile that produces this error, we will take a further look.
I found another forum post where a user reported the same error and we resolved it after some back and forth discussion. Sharing in case it helps you with troubleshooting.