ContextStudioWizard/templates/Dockerfile
Karamelmar 09ff27be92 Add Context Studio Wizard — project scaffolding CLI
- wizard.sh: interactive bash wizard that scaffolds new CS projects
- lib/: utils, core install, project structure, workflow generation
- templates/: Dockerfile, devcontainer.json, agent presets (minimal/standard), system.json, roles, hook rules
- README: setup, usage, mobility workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 11:49:04 +01:00

40 lines
1.8 KiB
Docker

FROM node:22-bookworm-slim
# ── System dependencies ──────────────────────────────────────────────────────
# Build tools: needed for node-pty (native module) and Electron
# xvfb + libgtk: needed if running Electron inside container with virtual display
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
curl \
wget \
ca-certificates \
python3 \
make \
g++ \
libx11-dev \
libxkbfile-dev \
libsecret-1-dev \
libfontconfig1 \
libgbm1 \
libasound2 \
xvfb \
&& rm -rf /var/lib/apt/lists/*
# ── Rust toolchain ───────────────────────────────────────────────────────────
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --no-modify-path --default-toolchain stable \
&& rustup component add clippy rustfmt \
&& chmod -R a+w /usr/local/rustup /usr/local/cargo
# ── Claude Code CLI ──────────────────────────────────────────────────────────
RUN npm install -g @anthropic-ai/claude-code
# ── Workspace ────────────────────────────────────────────────────────────────
WORKDIR /workspace
# Context Studio Core is mounted at /opt/context-studio/core (read-only from host)
# Workflow lives at /workspace/workflow (per-project, writable)