-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 1.81 KB
/
Copy pathDockerfile
File metadata and controls
35 lines (29 loc) · 1.81 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
FROM node:20-slim
# Install GitHub CLI + Azure CLI (for ADO pr_reviewer)
# gh keyring is binary GPG format - pipe through dd, no gnupg needed
# Microsoft key is ASCII-armored - requires gpg --dearmor, so install gnupg
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl gnupg && \
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
| dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
chmod go+r /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 && \
curl -sL https://packages.microsoft.com/keys/microsoft.asc | \
gpg --dearmor -o /usr/share/keyrings/microsoft.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/microsoft.gpg] https://packages.microsoft.com/repos/azure-cli/ bookworm main" \
> /etc/apt/sources.list.d/azure-cli.list && \
apt-get update && apt-get install -y --no-install-recommends gh azure-cli && \
az extension add --name azure-devops --yes && \
rm -rf /var/lib/apt/lists/*
# Claude Code CLI
RUN npm install -g @anthropic-ai/claude-code
# SandboxAQ code-review plugin (alg-claude-plugins/plugins/code-review), staged into the
# build context by `make build`. The pr_reviewer agent runs skills/pr-review/SKILL.md from
# here via CLAUDE_PLUGIN_ROOT=/opt/pr-review-plugin, so reviews track the plugin's latest
# committed version at image-build time instead of a frozen copy in agents/pr_reviewer.md.
COPY .plugin-build/code-review /opt/pr-review-plugin
RUN mkdir -p /workspace && chown node:node /workspace
USER node
WORKDIR /workspace
ENTRYPOINT ["claude"]