Skip to content
New issue

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

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

Already on GitHub? # to your account

Publishing images on 8.0.405 gets wrong entrypoint #46322

Closed
eliassorensen opened this issue Jan 27, 2025 · 1 comment
Closed

Publishing images on 8.0.405 gets wrong entrypoint #46322

eliassorensen opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
Area-Containers Related to dotnet SDK containers functionality untriaged Request triage from a team member

Comments

@eliassorensen
Copy link

Describe the bug

When building images on 8.0.405, the entrypoint is invalid. On 8.0.308 (to 8.0.404) it works.

On 8.0.308 - 8.0.404 the image entrypoint specification looks like this:

"Entrypoint": [
    "dotnet",               
    "app.dll"            
],

On 8.0.405 it looks like this:

"Entrypoint": [        
    "/app"            
],

To Reproduce

Run a dotnet publish for containers on both versions.

dotnet publish --os linux --arch x64 -p ContainerImageTag="test" -p ContainerRepository="localhost" -c Release path-to-csproj.csproj

My csproj container specification looks like this:

<PublishProfile>DefaultContainer</PublishProfile>
<ContainerBaseImage>mcr.microsoft.com/dotnet/aspnet:8.0.3-alpine3.19-amd64</ContainerBaseImage>
<ContainerImageTag>test</ContainerImageTag>
<ContainerRepository>localhost</ContainerRepository>
<ContainerRuntimeIdentifier>linux-x64</ContainerRuntimeIdentifier>

Exceptions (if any)

Further technical details

  • N/A
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Jan 27, 2025
@marcpopMSFT marcpopMSFT added the Area-Containers Related to dotnet SDK containers functionality label Jan 31, 2025
@marcpopMSFT marcpopMSFT assigned baronfel and unassigned dsplaisted Jan 31, 2025
@baronfel
Copy link
Member

baronfel commented Feb 2, 2025

Thanks for reporting - this looks like a duplicate of dotnet/sdk-container-builds#610, which was fixed by #45746 and should be released in this month's servicing releases.

@baronfel baronfel closed this as completed Feb 2, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area-Containers Related to dotnet SDK containers functionality untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

4 participants