Trying to deploy MERN app using separate folders

I’m trying to deploy the client folder for my MERN app first. It contains a .Dockerfile. And I got this error.

Nov 19 09:02:49 AM  ==> Cloning from https://github.com/Bl1xvan/mernportfolio...
Nov 19 09:02:49 AM  ==> Checking out commit 6f37d342c4b37d88d5b0c96113014f73b45d2411 in branch master
Nov 19 09:02:52 AM  ==> Downloading cache...
Nov 19 09:03:00 AM  ==> Still downloading cache...
Nov 19 09:03:08 AM  #1 [internal] load build definition from .Dockerfile
Nov 19 09:03:08 AM  #1 transferring dockerfile: 2B done
Nov 19 09:03:08 AM  #1 DONE 0.0s
Nov 19 09:03:08 AM  
Nov 19 09:03:08 AM  #2 [internal] load .dockerignore
Nov 19 09:03:08 AM  #2 transferring context: 2B done
Nov 19 09:03:08 AM  #2 DONE 0.0s
Nov 19 09:03:08 AM  error: failed to solve: failed to read dockerfile: open /home/user/.local/tmp/buildkit-mount38029333/.Dockerfile: no such file or directory

Hi there,

Thanks for reaching out.

If you have a .Dockerfile in a client folder of your repo you’ll probably want to set the service “Root Directory” to client. You’ll also want to set the Dockerfile name in the service settings as the leading period isn’t standard.

Hope that helps

Alan

For some reason I couldn’t access the client folder even in GitHub so I guess that was why “client” wasn’t working. It is now though. I had to delete the client and then re-add it. But it’s working. Thank you!