39 references to Comment
Aspire.Hosting.Python (28)
PythonAppResourceBuilderExtensions.cs (28)
508.Comment("Enable bytecode compilation and copy mode for the virtual environment") 519.Comment("Install dependencies first for better layer caching") 520.Comment("Uses BuildKit cache mounts to speed up repeated builds") 527.Comment("Copy the rest of the application source and install the project") 537.Comment("Copy pyproject.toml to install dependencies") 540.Comment("Install dependencies and generate lock file") 541.Comment("Uses BuildKit cache mount to speed up repeated builds") 546.Comment("Copy the rest of the application source and install the project") 560.Comment("------------------------------") 561.Comment("🚀 Runtime stage") 562.Comment("------------------------------") 563.Comment("Create non-root user for security") 566.Comment("Copy the application and virtual environment from builder") 569.Comment("Add virtual environment to PATH and set VIRTUAL_ENV") 575.Comment("Use the non-root user to run the application") 578.Comment("Set working directory") 581.Comment("Run the application"); 616.Comment("------------------------------") 617.Comment("🚀 Python Application") 618.Comment("------------------------------") 619.Comment("Create non-root user for security") 622.Comment("Set working directory") 630.Comment("Copy requirements.txt for dependency installation") 633.Comment("Install dependencies using pip") 647.Comment("Copy application files") 650.Comment("Set environment variables") 654.Comment("Use the non-root user to run the application") 657.Comment("Run the application");
Aspire.Hosting.Tests (11)
ApplicationModel\Docker\DockerfileStageTests.cs (11)
301var result = stage.Comment("This is a comment"); 314stage.Comment("This is a single-line comment"); 348stage.Comment(multiLineComment); 384stage.Comment(multiLineComment); 415stage.Comment(""); 446Assert.Throws<ArgumentNullException>(() => stage.Comment(null!)); 455stage.Comment("First comment"); 457stage.Comment("Second comment"); 490.Comment("Install dependencies") 494.Comment("Copy application files") 515stage.Comment(complexComment);