Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Dockerfile support in PublishContainer target #45491

Closed
dombrovsky opened this issue Dec 16, 2024 · 1 comment
Closed

Custom Dockerfile support in PublishContainer target #45491

dombrovsky opened this issue Dec 16, 2024 · 1 comment
Labels
Area-NetSDK untriaged Request triage from a team member

Comments

@dombrovsky
Copy link

We are using custom Dockerfiles for building container images for our csprojs. We are also using .NET Aspire, and we would like to use Aspire8 project to generate helm yamls.
Aspir8 project relies on dotnet publish -t:PublishContainer to build images for csprojs, which ignores existing custom Dockerfile.

A feature request is to make PublishContainer target respect DockerfileFile property, so that when it is specified dotnet publish -t:PublishContainer command would build image using specified Dockerfile.

Alternative solution would be to add support to Apire8 for calling docker build instead of dotnet publish. However it feels that having it in dotnet sdk could be useful in other scenarios as well.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Dec 16, 2024
@baronfel
Copy link
Member

Hello - we track feature requests for containers over at https://github.com/dotnet/sdk-container-builds - specifically this request is /issues/125. If you want to bring up this use case there we can talk through some of the details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants