18 lines
631 B
Docker
18 lines
631 B
Docker
# syntax=docker/dockerfile:1.6
|
|
ARG BASE_TAG=dev
|
|
FROM paperclipai/agent-runtime-base:${BASE_TAG}
|
|
|
|
USER root
|
|
RUN npm install -g @anthropic-ai/claude-code@latest \
|
|
&& { chown -R 1000:1000 /usr/lib/node_modules || true; }
|
|
|
|
# @anthropic-ai/claude-code installs as 'claude', but the shim expects 'claude-code'.
|
|
# Resolve the real install path and fail the build if claude is missing.
|
|
RUN CLAUDE_BIN="$(command -v claude)" \
|
|
&& ln -s "$CLAUDE_BIN" /usr/bin/claude-code
|
|
|
|
USER 1000:1000
|
|
|
|
# Verify the CLI is on PATH for the shim's exec.LookPath
|
|
RUN command -v claude-code >/dev/null 2>&1 || (echo "claude-code not on PATH"; exit 1)
|