Invalid Compose file - Service app-dev has no image/context

I’ve followed all the setup steps but when I run the command

docker-compose --profile production -f docker-compose.yaml up -d

I am met with the error:

ERROR: The Compose file is invalid because:
Service app-dev has neither an image nor a build context specified. At least one must be provided.

Oddly, I got bolt.diy working using “npm run dockerbuild” helper scripts instead of using “docker build . --target bolt-ai-development” docker build commands. Except after restarting my computer, I am back to the original error above and neither method works now.

In docker-compose.yml, under ‘app-dev:’ I tried added

      context: .
      dockerfile: Dockerfile

But doing this give my a huge list of python errors.

urllib3.exceptions.URLSchemeUnknown: Not supported URL scheme http+docker

File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())

docker.errors.DockerException: Error while fetching server API version: Not supported URL scheme http+docker

Any insights would be helpful, thanks!

Found a bug report and possible fix for this issue for some users.
https://github.com/stackblitz-labs/bolt.diy/issues/705