42 references to Comment
Aspire.Hosting (1)
Ats\DockerfileBuilderExports.cs (1)
167
return stage.
Comment
(comment);
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
602
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
613
.
Comment
("Install dependencies first for better layer caching")
614
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
621
.
Comment
("Copy the rest of the application source and install the project")
631
.
Comment
("Copy pyproject.toml to install dependencies")
634
.
Comment
("Install dependencies and generate lock file")
635
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
640
.
Comment
("Copy the rest of the application source and install the project")
654
.
Comment
("------------------------------")
655
.
Comment
("🚀 Runtime stage")
656
.
Comment
("------------------------------")
657
.
Comment
("Create non-root user for security")
660
.
Comment
("Copy the application and virtual environment from builder")
663
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
669
.
Comment
("Use the non-root user to run the application")
672
.
Comment
("Set working directory")
675
.
Comment
("Run the application");
710
.
Comment
("------------------------------")
711
.
Comment
("🚀 Python Application")
712
.
Comment
("------------------------------")
713
.
Comment
("Create non-root user for security")
716
.
Comment
("Set working directory")
724
.
Comment
("Copy requirements.txt for dependency installation")
727
.
Comment
("Install dependencies using pip")
747
.
Comment
("Copy pyproject.toml for dependency installation")
750
.
Comment
("Install dependencies using pip")
765
.
Comment
("Copy application files")
768
.
Comment
("Set environment variables")
772
.
Comment
("Use the non-root user to run the application")
775
.
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);