-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (46 loc) · 2.03 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (46 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM python:3.12-slim
# System dependencies for sandboxing and git operations
RUN apt-get update && apt-get install -y --no-install-recommends \
bubblewrap \
git \
curl \
ca-certificates \
gnupg \
&& rm -rf /var/lib/apt/lists/*
# Node.js 22.x (required by Claude Code CLI)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& rm -rf /var/lib/apt/lists/*
# Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code
# ruff (used by orchestrator for auto-lint in worktrees)
RUN pip install --no-cache-dir ruff
# semgrep (used by the canonicalizer agent for rule-based convention enforcement)
RUN pip install --no-cache-dir semgrep
# gh CLI (used by orchestrator for PR creation)
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
> /etc/apt/sources.list.d/github-cli.list \
&& apt-get update && apt-get install -y --no-install-recommends gh \
&& rm -rf /var/lib/apt/lists/*
# Install jig
COPY . /opt/jig
RUN pip install --no-cache-dir /opt/jig
# Non-root user — Claude Code refuses bypassPermissions as root
RUN useradd -m -s /bin/bash jig
# Pre-create the bwrap mount point for agent worktrees
RUN mkdir /workspace && chown jig:jig /workspace
USER jig
ENV CLAUDE_CODE_PERMISSION_MODE=bypassPermissions
# Writable config dir for the bundled claude CLI (the ro-mounted ~/.claude
# can't be written to; the CLI needs a writable location for logs/state).
ENV CLAUDE_CONFIG_DIR=/tmp/jig-claude-config
# Host gitconfig may enable GPG signing — not available in the container.
# GIT_CONFIG_COUNT/KEY/VALUE override without needing a writable gitconfig.
ENV GIT_CONFIG_COUNT=1
ENV GIT_CONFIG_KEY_0=commit.gpgsign
ENV GIT_CONFIG_VALUE_0=false
ENV JIG_IN_CONTAINER=1
WORKDIR /project
ENTRYPOINT ["jig"]