generated from dotnet/new-repo
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi,
I am trying to build a container from a project which requires command line args for some actions, but not by default. I.e. running myapp is as valid as running myapp arg1234.
Currently there seems to be no way to properly containerize this through dotnet publish.
- If you do not set any
ContainerDefaultArgs, no CMD entry is generated in the container, sodocker run mycontainer arg1234does not pass on thearg1234, or - If you do add
ContainerDefaultArgswith some other value (asIncludeis mandatory), you can't run the program without any args (as that would result in the default args being used).
An option of course would be to change the program to requiring an argument for the default behaviour, but that seems like a workaround to me for a problem that should not exist in the first place.
Cheers.
Metadata
Metadata
Assignees
Labels
No labels