41 references to Comment
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
559
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
570
.
Comment
("Install dependencies first for better layer caching")
571
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
578
.
Comment
("Copy the rest of the application source and install the project")
588
.
Comment
("Copy pyproject.toml to install dependencies")
591
.
Comment
("Install dependencies and generate lock file")
592
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
597
.
Comment
("Copy the rest of the application source and install the project")
611
.
Comment
("------------------------------")
612
.
Comment
("🚀 Runtime stage")
613
.
Comment
("------------------------------")
614
.
Comment
("Create non-root user for security")
617
.
Comment
("Copy the application and virtual environment from builder")
620
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
626
.
Comment
("Use the non-root user to run the application")
629
.
Comment
("Set working directory")
632
.
Comment
("Run the application");
667
.
Comment
("------------------------------")
668
.
Comment
("🚀 Python Application")
669
.
Comment
("------------------------------")
670
.
Comment
("Create non-root user for security")
673
.
Comment
("Set working directory")
681
.
Comment
("Copy requirements.txt for dependency installation")
684
.
Comment
("Install dependencies using pip")
704
.
Comment
("Copy pyproject.toml for dependency installation")
707
.
Comment
("Install dependencies using pip")
722
.
Comment
("Copy application files")
725
.
Comment
("Set environment variables")
729
.
Comment
("Use the non-root user to run the application")
732
.
Comment
("Run the application");
Aspire.Hosting.Tests (11)
ApplicationModel\Docker\DockerfileStageTests.cs (11)
301
var result = stage.
Comment
("This is a comment");
314
stage.
Comment
("This is a single-line comment");
348
stage.
Comment
(multiLineComment);
384
stage.
Comment
(multiLineComment);
415
stage.
Comment
("");
446
Assert.Throws<ArgumentNullException>(() => stage.
Comment
(null!));
455
stage.
Comment
("First comment");
457
stage.
Comment
("Second comment");
490
.
Comment
("Install dependencies")
494
.
Comment
("Copy application files")
515
stage.
Comment
(complexComment);