Skip to content

Run the agent image on the aspnet runtime - #568

Merged
rockfordlhotka merged 1 commit into
mainfrom
fix/agent-image-aspnet-runtime
Sep 13, 2026
Merged

rockfordlhotka merged 1 commit into
mainfrom
fix/agent-image-aspnet-runtime

Conversation

@rockfordlhotka

Copy link
Copy Markdown
Member

Why

#567 gave the agent a Kestrel listener for attachment uploads (AttachmentUploadEndpoint) and added <FrameworkReference Include="Microsoft.AspNetCore.App" /> to RockBot.Agent.csproj. deploy/Dockerfile.agent still based its runtime stage on dotnet/runtime, which does not carry that framework, so every agent image built from main since #567 exits at launch:

Framework: 'Microsoft.AspNetCore.App', version '10.0.0' (x64)
No frameworks were found.

Unit tests and a local dotnet run can't catch this — the SDK has every framework. It surfaced when building the compose stack from main to live-test #536. The deployed agent (0.15.0) predates #567, so nothing running is broken yet; the next agent image would be.

Change

The runtime stage now uses mcr.microsoft.com/dotnet/aspnet:10.0, still pinned by digest like the rest of this Dockerfile. The pin moves the base from 10.0.3 to 10.0.12.

No other image is affected: RockBot.Agent is the only project with the ASP.NET Core framework reference that ships on a runtime base. The gateway, sample-http agent, Blazor, and MCP server images were already on aspnet.

Verification

Rebuilt the agent through the compose stack with this Dockerfile:

  • Container stays up (previously Exited (150) within a second).
  • Attachment upload endpoint listening on port 8082 (POST /attachments)
  • Subscribes to user.attachment.upload.request.RockBot, scheduler starts, Application started.

🤖 Generated with Claude Code

https://claude.ai/code/session_018SydqNVaaq48Q2fpPZWesJ

#567 gave the agent a Kestrel listener for attachment uploads and added
a FrameworkReference to Microsoft.AspNetCore.App, but Dockerfile.agent
still based its runtime stage on dotnet/runtime, which does not carry
that framework. Every agent image built from main since then exits at
launch:

    Framework: 'Microsoft.AspNetCore.App', version '10.0.0' (x64)
    No frameworks were found.

Tests and a local `dotnet run` never see it because the SDK has every
framework. Found by building the compose stack from main.

The runtime stage now uses dotnet/aspnet, still pinned by digest. The
pin moves the base from 10.0.3 to 10.0.12.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SydqNVaaq48Q2fpPZWesJ
@rockfordlhotka
rockfordlhotka merged commit ad76643 into main Sep 13, 2026
@rockfordlhotka
rockfordlhotka deleted the fix/agent-image-aspnet-runtime branch September 13, 2026 22:43
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

Successfully merging this pull request may close these issues.

1 participant