dotnet / command-line-api

Command line parsing, invocation, and rendering of terminal output.
https://github.com/dotnet/command-line-api/wiki
MIT License
3.37k stars 378 forks source link

[dotnet-suggest] Support for Docker runtime-deps:alpine #1863

Open iBicha opened 1 year ago

iBicha commented 1 year ago

Trying to ship a CLI (self-contained .net app) using Docker image mcr.microsoft.com/dotnet/runtime-deps:6.0.9-alpine3.16-amd64. The choice of this image is to be as lightweight as possible.

The first problem is that dotnet command is not available to install using RUN dotnet tool install -g dotnet-suggest.

When using a separate image (like mcr.microsoft.com/dotnet/sdk:6.0.401-alpine3.16-amd64) there's a couple of issues with that:

Overall, we need a simple way to ship a self-contained .net app, with dotnet-suggest pre-configured on Docker, to reduce the burden to set it up for users.

Thanks

KathleenDollard commented 1 year ago

@baronfel