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

Images for .NET Core on Windows Server Core #741

Closed
mattleibow opened this issue Oct 11, 2018 · 3 comments
Closed

Images for .NET Core on Windows Server Core #741

mattleibow opened this issue Oct 11, 2018 · 3 comments

Comments

@mattleibow
Copy link
Member

Not sure of the reason they don't exist, but I am sure someone will post a comment soon 😺

Anyway, this is very useful so I don't have to download an install the Core SDK each time on my images.

A practical use case is this issue: mono/SkiaSharp#591. As a result, I had to create a longer Dockerfile to first create a container, install .NET Core SDK, and then build my app, create a new container, install the Core Runtime and then run my app: https://gist.github.com/mattleibow/32ff6d124e7b5b93e94f1eb45d243aba

I don't mind installing the vc_redist at this point, as I only have to do it on the runtime container, and I hope to be removing this step, but I hope to be able to just pull the latest .NET Core image that can do things that need more Win32 features.

@mattleibow
Copy link
Member Author

I created a broken PR #732 that I need to fix if this is something that will ever be accepted.

@MichaelSimons
Copy link
Member

This is a duplicate of #332.

The reason only Windows Nano Server images exist for .NET Core is because it is the best Windows Server container environment to run your .NET Core apps on. It is a much smaller SKU - smaller attack surface area, better performance, etc. .NET Framework has a Windows Server Core image because it is the only Windows Server container environment it is supported on.

The current recommendation for scenarios like yours would be to create your own Windows Server Core image which included .NET Core. You could start with the current .NET Core Nano Server Dockerfiles and change the FROM.

@mattleibow
Copy link
Member Author

Makes sense. Not too much extra work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants