41 references to Comment
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
556
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
567
.
Comment
("Install dependencies first for better layer caching")
568
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
575
.
Comment
("Copy the rest of the application source and install the project")
585
.
Comment
("Copy pyproject.toml to install dependencies")
588
.
Comment
("Install dependencies and generate lock file")
589
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
594
.
Comment
("Copy the rest of the application source and install the project")
608
.
Comment
("------------------------------")
609
.
Comment
("🚀 Runtime stage")
610
.
Comment
("------------------------------")
611
.
Comment
("Create non-root user for security")
614
.
Comment
("Copy the application and virtual environment from builder")
617
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
623
.
Comment
("Use the non-root user to run the application")
626
.
Comment
("Set working directory")
629
.
Comment
("Run the application");
664
.
Comment
("------------------------------")
665
.
Comment
("🚀 Python Application")
666
.
Comment
("------------------------------")
667
.
Comment
("Create non-root user for security")
670
.
Comment
("Set working directory")
678
.
Comment
("Copy requirements.txt for dependency installation")
681
.
Comment
("Install dependencies using pip")
701
.
Comment
("Copy pyproject.toml for dependency installation")
704
.
Comment
("Install dependencies using pip")
719
.
Comment
("Copy application files")
722
.
Comment
("Set environment variables")
726
.
Comment
("Use the non-root user to run the application")
729
.
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);