Wrong order of yum commands

When building image following error appears:
No package mongodb-server available.
Error: Nothing to do