I ran into a similar issue and noticed that all the connection in docker build took at least 5 seconds. The mise fetch version default timeout is 5s.
So adding this environemnt variable fixed the issue.
ENV MISE_FETCH_REMOTE_VERSIONS_TIMEOUT=10s