I am working on an app with Next.js, Strapi, Mongo DB, and Stripe, with hopes of eventually deploying in Vercel. I’ve been able to successfully start Docker containers for Strapi and Mongo DB, and create an image for the Dockerfile; but I’m not sure what I changed to cause it to not work any longer. I keep getting this context error for the Dockerfile. The Strapi error says it needs an empty directory. I’m doing a coding bootcamp but most of the class has already finished so I don’t have anyone to ask for help. Let me know if other code is needed. Thanks for any help you can provide!
It seems like there might be an issue with the build context in your Dockerfile. Make sure your Dockerfile is located in the root directory of your project, and check if any changes were made to the directory structure or Dockerfile itself that could have caused the error. Also, ensure that you have an empty directory named “strapi” in your project directory, as required by Strapi. If the issue persists, you might need to review your Dockerfile and Docker configuration to troubleshoot further.