Produce a Dockerfile that packages this standards repo into a containerized development environment. The image provides a ready-to-use /standards with all tooling available after mise install. /app is left empty as a sandbox for whatever project the user scaffolds with skills/setup-project/SKILL.md.
The Dockerfile is the only artifact — write the file, do not explain.
Constraints (hard requirements — do not deviate)
Base image and user
debian:stable-slimas the base image.Create a non-root user named
agentwith home at/home/agent.Switch to
USER agentas soon as the user is created and never switch back to root. UseCOPY --chown=agent:agentwhen copying files.Create
/standardsand/appdirectories, both owned byagent./appis left completely empty — no mise.toml, no .gitignore, no tools, no config. It is a blank sandbox for the user's project.
System packages
Install these packages (and only these) via apt-get: curl, ca-certificates, git, tmux, unzip, build-essential.
Do not install GitHub CLI (gh) via apt-get or an apt repository.
Do NOT install zsh. Bash is the only shell.
mise
miseis the primary tooling dependency baked into the image. GitHub CLI (gh) is the only exception and must be installed through project-scopedmise use gh@latest. Everything else (Node, pi, fnox, firecrawl-cli, etc.) flows frommise installinside/standardsat runtime.Install mise via
curl https://mise.run | shas theagentuser. This lands the binary at/home/agent/.local/bin/mise. Add/home/agent/.local/bintoPATHvia ENV.Do NOT run
mise installat build time. The user runs it manually.Do run
mise trust /standardsat build time so the user doesn't hit a trust prompt at runtime.Install GitHub CLI (
gh) via project-scoped mise after copying/standards:cd /standards && mise use gh@latest. This may update the repo's mise config in the image; do not use apt forgh.NEVER use
mise -g(global). All mise operations are project-scoped.
Shell activation
Write mise activation to both .bashrc and .bash_profile so it works whether the user runs docker run ... bash (non-login) or docker run ... (login shell via CMD).
eval "$($HOME/.local/bin/mise activate bash)"
tmux
Bake a minimal ~/.tmux.conf (required by the pi-tmux extension):
set -g mouse on
set -g extended-keys on
set -g extended-keys-format csi-u
Git config
Set default identity so git operations work immediately:
git config --global user.name "TheFocus.AI"
git config --global user.email "agent@thefocus.ai"
/standards
COPY --chown=agent:agent . /standardsto put the entire standards repo into the image.Do NOT set a WORKDIR — the CMD determines the working directory.
CMD
CMD ["/bin/bash", "-l"]
Runtime contract (document in Dockerfile comments at the top)
The generated Dockerfile must include comments at the top documenting:
Provenance:
Generated from recipes/generate-dockerfile.md.Do not hand-edit; edit the prompt and regenerate with mise run generate:dockerfile.Build:
docker build -t focus-ai-standards-agent .Run in a cloud workspace:
docker run -it --rm --env OPENAI_API_KEY --env OP_SERVICE_ACCOUNT_TOKEN focus-ai-standards-agentThese names forward already-injected, project-scoped credentials only when needed. Use the selected model provider's variable instead ofOPENAI_API_KEYif different.First steps inside the container:
cd /standards mise install mise run install pi -p "$(cat skills/setup-project/SKILL.md)" # supply a project brief; target /appA person retrieves the project-scoped bootstrap token through their seat in TheFocus.AI's company 1Password account (
thefocusai.1password.com, never a personalmy.1password.comaccount) and injects it through cloud secret settings. Do not mount personal authentication directories (~/.pi,~/.config,~/.ssh, or a 1Password session), persist tokens, or bake credentials into the image. Installation and offline checks do not need those runtime credentials.Sessions are ephemeral (lost when the container exits). Store durable project work in an approved workspace, not a personal auth-directory mount.
What NOT to do
Do NOT install zsh or configure
.zshrc.Do NOT create
/app/mise.tomlor any file inside/app.Do NOT install fnox, 1Password CLI, or configure secrets.
Do NOT run
mise installat build time.Do NOT install pi extensions (
pi install). The/standards/.pi/settings.jsondeclares them and pi auto-installs missing packages on startup.Do NOT install skills (
npx skills add). They live in the standards repo and the user's project installs its own.Do NOT set up systemd, linger, or
loginctl.Do NOT switch back to root after
USER agent.Do NOT use
mise -g(global install).