Skip to content

Commit d25695e

Browse files
Merge pull request #13735 from ghogen/command-line-builds
Add info about command-line builds for containers
2 parents e8a124e + f23176d commit d25695e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/containers/container-build-from-command-line.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ msbuild /p:SolutionPath=<solution-name>.sln /p:Configuration=Release docker-comp
6363

6464
To view the MSBuild logs, see [Obtaining build logs with MSBuild](../msbuild/obtaining-build-logs-with-msbuild.md).
6565

66+
## Build from the command line
67+
68+
Visual Studio uses Fast Mode (if enabled) to produce a container image configured to work best for development and debugging, so we don't recommend copying the docker build commands from the Output window after a Fast Mode build. To build a standard image without nonstandard optimizations, you can right-click on the Dockerfile and choose the **Build Docker image** option.
69+
70+
Visual Studio uses the `dev` tag to designate images that it has specially prepared to optimize the startup time during debugging. However, these images shouldn't be used outside of the context of Visual Studio. This tag is an indication the images have nonstandard modifications and customizations, for example, to support Fast Mode debugging. See [Customize Docker containers in Visual Studio](container-build.md).
71+
6672
## Related content
6773

6874
- [MSBuild properties for container projects](container-msbuild-properties.md).

0 commit comments

Comments
 (0)