FROM node:22-slim

RUN apt-get update && apt-get install -y --no-install-recommends \
        git \
        ca-certificates \
        ripgrep \
        curl \
        less \
    && rm -rf /var/lib/apt/lists/*

RUN npm install -g @anthropic-ai/claude-code

RUN useradd -m -u 1000 -s /bin/bash agent

USER agent
WORKDIR /workspace

ENTRYPOINT []
CMD ["claude"]
