38 references to WithDockerfile
Aspire.Hosting (9)
ContainerResourceBuilderExtensions.cs (7)
683/// When generating the manifest for deployment tools, the <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/> 952.WithDockerfile(contextPath, dockerfilePath, stage); 1153/// called before <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/>. 1159/// <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/>. 1203/// called before <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/>. 1209/// <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/>. 1281/// called before <see cref="ContainerResourceBuilderExtensions.WithDockerfile{T}(IResourceBuilder{T}, string, string?, string?)"/>.
ExecutableResourceBuilderExtensions.cs (1)
167cb.WithDockerfile(contextPath: dockerfileContextPath);
ProjectResourceBuilderExtensions.cs (1)
1089cb.WithDockerfile(contextPath: projectDirectoryPath);
Aspire.Hosting.Containers.Tests (19)
WithDockerfileTests.cs (19)
34.WithDockerfile(tempContextPath, tempDockerfilePath) 66.WithDockerfile(tempContextPath, tempDockerfilePath); 126.WithDockerfile(tempContextPath, tempDockerfilePath); 151.WithDockerfile(tempContextPath, tempDockerfilePath); 155dockerFile.WithDockerfile(tempContextPath, tempDockerfilePath); 172.WithDockerfile(tempContextPath, tempDockerfilePath); 201.WithDockerfile(tempContextPath, tempDockerfilePath); 275.WithDockerfile(tempContextPath, tempDockerfilePath, "runner") 374.WithDockerfile(tempContextPath, tempDockerfilePath) 466.WithDockerfile(tempContextPath, tempDockerfilePath) 603.WithDockerfile(string.Empty); 617.WithDockerfile(string.Empty); 652.WithDockerfile(tempContextPath); 685.WithDockerfile(tempContextPath, "Dockerfile"); 718.WithDockerfile(tempContextPath, "Otherdockerfile"); 751.WithDockerfile(tempContextPath, tempDockerfilePath); 953.WithDockerfile(tempContextPath, tempDockerfilePath); 999.WithDockerfile(tempContextPath1, tempDockerfilePath1) 1000.WithDockerfile(tempContextPath1, tempDockerfilePath1); // Call twice to start
Aspire.Hosting.Go.Tests (2)
AddGoAppTests.cs (2)
1144.PublishAsDockerFile(container => container.WithDockerfile(sourceDir, publishDockerfile)); 1167.PublishAsDockerFile(container => container.WithDockerfile(sourceDir, publishDockerfile).WithEntrypoint("/app/server"));
Aspire.Hosting.JavaScript.Tests (1)
AddJavaScriptAppTests.cs (1)
299.PublishAsDockerFile(container => container.WithDockerfile(appDir));
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
1452.PublishAsDockerFile(container => container.WithDockerfile(sourceDir, publishDockerfile)); 1475.PublishAsDockerFile(container => container.WithDockerfile(sourceDir, publishDockerfile).WithEntrypoint("/app/run"));
Aspire.Hosting.Rust.Tests (1)
AddRustAppPublishTests.cs (1)
535.PublishAsDockerFile(container => container.WithDockerfile(customContext.FullName, "Dockerfile.prod"));
Aspire.Hosting.Tests (4)
PublishAsDockerfileTests.cs (1)
484.WithDockerfile(workspace.WorkspaceRoot.FullName);
Schema\SchemaTests.cs (3)
86builder.AddContainer("mycontainer", "myimage").WithDockerfile(tempContextPath); 100.WithDockerfile(tempContextPath) 118.WithDockerfile(tempContextPath)