42 references to Comment
Aspire.Hosting (1)
Ats\DockerfileBuilderExports.cs (1)
167
return stage.
Comment
(comment);
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
541
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
552
.
Comment
("Install dependencies first for better layer caching")
553
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
560
.
Comment
("Copy the rest of the application source and install the project")
570
.
Comment
("Copy pyproject.toml to install dependencies")
573
.
Comment
("Install dependencies and generate lock file")
574
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
579
.
Comment
("Copy the rest of the application source and install the project")
593
.
Comment
("------------------------------")
594
.
Comment
("🚀 Runtime stage")
595
.
Comment
("------------------------------")
596
.
Comment
("Create non-root user for security")
599
.
Comment
("Copy the application and virtual environment from builder")
602
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
608
.
Comment
("Use the non-root user to run the application")
611
.
Comment
("Set working directory")
614
.
Comment
("Run the application");
649
.
Comment
("------------------------------")
650
.
Comment
("🚀 Python Application")
651
.
Comment
("------------------------------")
652
.
Comment
("Create non-root user for security")
655
.
Comment
("Set working directory")
663
.
Comment
("Copy requirements.txt for dependency installation")
666
.
Comment
("Install dependencies using pip")
686
.
Comment
("Copy pyproject.toml for dependency installation")
689
.
Comment
("Install dependencies using pip")
704
.
Comment
("Copy application files")
707
.
Comment
("Set environment variables")
711
.
Comment
("Use the non-root user to run the application")
714
.
Comment
("Run the application");
Aspire.Hosting.Tests (11)
ApplicationModel\Docker\DockerfileStageTests.cs (11)
300
var result = stage.
Comment
("This is a comment");
313
stage.
Comment
("This is a single-line comment");
347
stage.
Comment
(multiLineComment);
383
stage.
Comment
(multiLineComment);
414
stage.
Comment
("");
445
Assert.Throws<ArgumentNullException>(() => stage.
Comment
(null!));
454
stage.
Comment
("First comment");
456
stage.
Comment
("Second comment");
489
.
Comment
("Install dependencies")
493
.
Comment
("Copy application files")
514
stage.
Comment
(complexComment);