Skip to content

Documentation on WithDockerfile() extension method is incorrect for dockerfilePath #12177

@Chicoo

Description

@Chicoo

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The documentation for the ContainerResourceBuilderExtensions.WithDockerfile method states that both the contextPath and the dockerfilePath are relative to the Apphost directory

Both the contextPath and dockerfilePath are relative to the AppHost directory unless they are fully qualified

This is not the case as the dockerfilePath is relative to the contextPath

Expected Behavior

Update the documentation to correctly state the behavior

The contextPath is relative to the AppHost directory unless fully qualified. The dockerfilePath is relative to the contextPath directory  unless fully qualified. If rhe dockerfilePath is not provided, the path is assumed to be Dockerfile relative to the contextPath.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions