sdk-container-builds icon indicating copy to clipboard operation
sdk-container-builds copied to clipboard

ContainerAppCommandInstruction when set to Entrypoint does not use the arguments defined in the ContainerAppCommandArgs tag.

Open lymberl opened this issue 1 year ago • 1 comments

When it builds a .NET8 Linux based image the following issue is occurring. To build the image the following command is used: dotnet publish --os linux --arch x64 -c Release /t:PublishContainer

In the documentation there is no example of how to use this. I have tried the below to run the echo "containersetupscript.sh" command. But instead it produces echo "dotnet dotnetApp.dll containersetupscript.sh" command. <ItemGroup Label="ContainerAppCommand Assignment"> <ContainerAppCommand Include="echo" /> <ContainerAppCommandArgs Include="containersetupscript.sh" /> <ContainerAppCommandInstruction Include="Entrypoint" /> </ItemGroup>

It doesn't work since it displays "dotnet dotnetApp.dll containersetupscript.sh" instead of just "containersetupscript.sh". How to get rid of "dotnet dotnetApp.dll" and just display "containersetupscript.sh"?

Expected behaviour of the echo command is to just display "containersetupscript.sh". But it inserts "dotnet dontetApp.dll" also as arguments to the command i want.

lymberl avatar Feb 01 '24 05:02 lymberl