Asp.net core 8 + react js

I have a project built using visual studio. It consists of multiple projects, a backend project using asp.net core 8 and a frontend project using react js. They are all built in one project. can any one help me to create a docker file to create an image and create a container to run the project.
This is the project structure inside the GOVERNMENTERP folder.

├── GOVERNMENTERP.API
│ ├── Controllers
│ ├── GOVERNMENTERP.API.csproj
│ ├── GOVERNMENTERP.API.csproj.user
│ ├── GOVERNMENTERP.API.http
│ ├── Helper
│ ├── Hubs
│ ├── Program.cs
│ ├── Properties
│ ├── StreamIdentityDbContext.cs
│ ├── Upload
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── bin
│ ├── libs
│ └── obj
├── GOVERNMENTERP. Controller
│ ├── Employeerequest
│ ├── Financial
│ ├── Fleet
│ ├── GOVERNMENTERP.Controller.csproj
│ ├── GOVERNMENTERP.Controller.csproj.vspscc
│ ├── Gisservices
│ ├── Hrmodule
│ ├── Inout
│ ├── Investigation
│ ├── Mail
│ ├── Payment
│ ├── Processmanagement
│ ├── Tecketing
│ ├── Utility
│ ├── Warehouse
│ ├── bin
│ └── obj
├── GOVERNMENTERP.Model
│ ├── Employeerequest
│ ├── Financial
│ ├── Fleet
│ ├── GOVERNMENTERP.Model.csproj
│ ├── GOVERNMENTERP.Model.csproj.vspscc
│ ├── Gisservices
│ ├── Hrmodule
│ ├── Inout
│ ├── Investigation
│ ├── Mail
│ ├── Payment
│ ├── Processmanagement
│ ├── Tecketing
│ ├── Utility
│ ├── Warehouse
│ ├── bin
│ └── obj
├── GOVERNMENTERP.View
│ ├── .gitignore
│ ├── ClientApp
│ ├── ClientMobile
│ ├── ClientWebsite
│ ├── Controllers
│ ├── GOVERNMENTERP.View.csproj
│ ├── GOVERNMENTERP.View.csproj.vspscc
│ ├── Pages
│ ├── Program.cs
│ ├── Properties
│ ├── Startup.cs
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── bin
│ └── obj
├── GOVERNMENTERP.sln

Containers are not VMs. Usually you would have one container for frontend, another for backend, for separation of concerns. Makes it easier for scaling. Why place those components in the same container?

Please, also share what you have tried so far and what problem you had that you need to solve. It is not likely that you find someone who helps without a question to answer.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.