Docker-compose file says failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory, but there is a Dockerfile

Then first try docker compose up --build

And make sure you use an official Docker installation: Which Docker variant am I using and where is the daemon running? - DEV Community

Share which one you think you are using and how you installed it.