77
CHAPTER 4 | Development process for Docker-based applications
Figure 5-3. Enabling Docker Support when creating a new ASP.NET Core project in Visual Studio 2022
You can also enable Docker support on an existing ASP.NET Core web app project by right-clicking
the project in
Solution Explorer
and
selecting
Add
>
Docker Support…
, as shown in Figure 5-4.
Figure 5-4. Enabling Docker support in an existing Visual Studio 2022 project
78
CHAPTER 4 | Development process for Docker-based applications
This action adds a
Dockerfile
to the project with the required configuration, and is only available on
ASP.NET Core projects.
In
a similar fashion, Visual Studio can also add a
docker-compose.yml
file for the whole solution with
the option
Dostları ilə paylaş: