Add dotnet inner sandbox image recipe (.sandcastle/Dockerfile.dotnet)#106
Merged
Conversation
First concrete per-language Dockerfile variant, per ADR-0002's addendum and ADR-0024: mcr.microsoft.com/dotnet/sdk:8.0 base (lean official upstream SDK image, not a sibling devcontainer-dotnet8 image), mirroring the existing Dockerfile/Dockerfile.opencode pattern (git+curl, non-root user rename, Claude Code CLI via the native installer). Claude tier only. mcr.microsoft.com/dotnet/sdk:8.0 ships its own pre-existing non-root user `app` at uid=1654/gid=1654 (not 1000 like the Node image's `node` user) -- renamed to `agent` per the existing "rename if present" policy, with AGENT_UID/AGENT_GID defaults set to 1654 to match. Verified: docker build succeeds; smoke-tested git/curl/dotnet/claude CLI all work as the non-root `agent` user. Implements issue #1 of .scratch/dotnet-afk-support/PRD.md (this workspace's local tracker, not this repo's own issue tracker). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2 tasks
lsfera
added a commit
that referenced
this pull request
Jul 6, 2026
Copy-pasteable recipe for running /afk & /hitl against a non-TypeScript (dotnet) target project: README + orchestrator.env template pointing SANDCASTLE_IMAGE at the dotnet inner image (sandcastle-dotnet:local, #106) and AGENTIC_REPO at the validation fixture repo (lsfera/dotnet-afk-proof). Structural first for examples/ — every prior example is a pure tier/model config recipe; this one also points at a non-default inner image and an external repo, so it's the first to actually set AGENTIC_REPO. One new row added to examples/README.md's table; no other entries touched. Implements issue #3 of .scratch/dotnet-afk-support/PRD.md (this workspace's local tracker). Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcr.microsoft.com/dotnet/sdk:8.0base, mirroring the existingDockerfile/Dockerfile.opencodepattern (git+curl, non-root user rename, Claude Code CLI via the native installer). Claude tier only.mcr.microsoft.com/dotnet/sdk:8.0ships its own pre-existing non-root userappat uid=1654/gid=1654 (not 1000 like the Node image'snodeuser) — renamed toagentper the existing "rename if present" policy, withAGENT_UID/AGENT_GIDdefaults set to 1654 to match.Verification
docker build -f .sandcastle/Dockerfile.dotnet .sandcastlesucceeds.docker run --entrypoint sh):git --version,curl --version,dotnet --version(8.0.422),claude --version(2.1.201) all work as the non-rootagentuser (uid=1654) in/home/agent..sandcastle/*.tsorchestrator code touched — Dockerfile-only change.Implements issue
01of.scratch/dotnet-afk-support/PRD.md(this workspace's local issue tracker).🤖 Generated with Claude Code