42 references to Comment
Aspire.Hosting (1)
Ats\DockerfileBuilderExports.cs (1)
169
return stage.
Comment
(comment);
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
543
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
554
.
Comment
("Install dependencies first for better layer caching")
555
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
562
.
Comment
("Copy the rest of the application source and install the project")
572
.
Comment
("Copy pyproject.toml to install dependencies")
575
.
Comment
("Install dependencies and generate lock file")
576
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
581
.
Comment
("Copy the rest of the application source and install the project")
595
.
Comment
("------------------------------")
596
.
Comment
("🚀 Runtime stage")
597
.
Comment
("------------------------------")
598
.
Comment
("Create non-root user for security")
601
.
Comment
("Copy the application and virtual environment from builder")
604
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
610
.
Comment
("Use the non-root user to run the application")
613
.
Comment
("Set working directory")
616
.
Comment
("Run the application");
651
.
Comment
("------------------------------")
652
.
Comment
("🚀 Python Application")
653
.
Comment
("------------------------------")
654
.
Comment
("Create non-root user for security")
657
.
Comment
("Set working directory")
665
.
Comment
("Copy requirements.txt for dependency installation")
668
.
Comment
("Install dependencies using pip")
688
.
Comment
("Copy pyproject.toml for dependency installation")
691
.
Comment
("Install dependencies using pip")
706
.
Comment
("Copy application files")
709
.
Comment
("Set environment variables")
713
.
Comment
("Use the non-root user to run the application")
716
.
Comment
("Run the application");
Aspire.Hosting.Tests (11)
ApplicationModel\Docker\DockerfileStageTests.cs (11)
302
var result = stage.
Comment
("This is a comment");
315
stage.
Comment
("This is a single-line comment");
349
stage.
Comment
(multiLineComment);
385
stage.
Comment
(multiLineComment);
416
stage.
Comment
("");
447
Assert.Throws<ArgumentNullException>(() => stage.
Comment
(null!));
456
stage.
Comment
("First comment");
458
stage.
Comment
("Second comment");
491
.
Comment
("Install dependencies")
495
.
Comment
("Copy application files")
516
stage.
Comment
(complexComment);