I want to deploy an application developed in Angular 16 and Node.js 20, through google cloud, the repository on github is as follows, application/ frontend and application/backend, that is, within the repository it contains separate angular from node, like Can I deploy this repository to Google Cloud? Or rather, how do I configure the Dockerfile files to be able to deploy this on Google Cloud, in all the ways I tried, they are giving an error when building, because in the Google Cloud configuration you only select the repository, there is no way to inform it to be the frontend or backend folder, so how could I deploy this application?
Another question, in Angula projects with backend, I see a lot of people implementing the backend within the application, for example: application/backend and application/src, so would it be possible to configure the entire application to run through a single command? If so, would it be better to deploy then or not?
I’ve already tried to deploy this application on Google Cloud, pulling it directly, without using Docker, configuring it directly in Google Run, but without success, I’ve also tried using Docker, but I think I configured it wrong, and it won’t let it build when it’s in the repository folder. backend and frontend.
Kaue Siqueira is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.