I was trying to build my Docker image for my Gatsby Application. Whenever I run the command docker build . -t gatsbyapp, it gives me an error:
docker build . -t gatsbyapp
f
Was facing the same issue despite naming the file as Dockerfile. I restarted the docker and it worked for me. So, please try the same. Thanks!