It’s unfortunately a known issue with microservice build with docker v25+ and “old” cumulocity instances.
See here Error uploading microservice: "Config file does not .json extension."
There is already a fix for cumulocity for specific versions as mentioned in that post but as a workaround you could also try to build the mapper with a docker version < 25