since Docker for Desktop on Mac Version 3.2.1 the build fails with:
% docker-compose -f docker/docker-compose.yml build
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name “DEV”: invalid reference format: repository name must be lowercase
If I downgrade the version to 3.1.0 and run the same command, the image is found and no error occurs.
If I had build the image with version 3.1.0 and rebuild it with 3.2.1 all works fine. Seems to be just with newer images.
Docker for Desktop 3.2.1