41 references to Comment
Aspire.Hosting.Python (30)
PythonAppResourceBuilderExtensions.cs (30)
537
.
Comment
("Enable bytecode compilation and copy mode for the virtual environment")
548
.
Comment
("Install dependencies first for better layer caching")
549
.
Comment
("Uses BuildKit cache mounts to speed up repeated builds")
556
.
Comment
("Copy the rest of the application source and install the project")
566
.
Comment
("Copy pyproject.toml to install dependencies")
569
.
Comment
("Install dependencies and generate lock file")
570
.
Comment
("Uses BuildKit cache mount to speed up repeated builds")
575
.
Comment
("Copy the rest of the application source and install the project")
589
.
Comment
("------------------------------")
590
.
Comment
("🚀 Runtime stage")
591
.
Comment
("------------------------------")
592
.
Comment
("Create non-root user for security")
595
.
Comment
("Copy the application and virtual environment from builder")
598
.
Comment
("Add virtual environment to PATH and set VIRTUAL_ENV")
604
.
Comment
("Use the non-root user to run the application")
607
.
Comment
("Set working directory")
610
.
Comment
("Run the application");
645
.
Comment
("------------------------------")
646
.
Comment
("🚀 Python Application")
647
.
Comment
("------------------------------")
648
.
Comment
("Create non-root user for security")
651
.
Comment
("Set working directory")
659
.
Comment
("Copy requirements.txt for dependency installation")
662
.
Comment
("Install dependencies using pip")
682
.
Comment
("Copy pyproject.toml for dependency installation")
685
.
Comment
("Install dependencies using pip")
700
.
Comment
("Copy application files")
703
.
Comment
("Set environment variables")
707
.
Comment
("Use the non-root user to run the application")
710
.
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);