Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add the required configurations for dockerizing the project and be able to both publish it into a container image and run it and debug it in a container.
Related Issue
Closes #26
Motivation and Context
As explained in #26, this will help offering support for containers, publish images and debugging capabilities on them out-of-the-box.
How Has This Been Tested?
API project can now be ran and debugged on a container straight from VS and an image be built straight from the dotnet CLI due to the SDK Container configuration.
A note to consider: current mechanism (SDK Container) is only supported for debugging from VS 2022 v17.9 (currently in Preview).
For publishing the project into an image is enough to run the following command:
This of course does not depend on VS versions.
Types of changes
Checklist: