FROM node:18-slim # Install system dependencies RUN apt-get update && apt-get install -y \ git \ curl \ unzip \ ca-certificates \ && rm -rf /var/lib/apt/lists/* # Install Bun globally RUN curl -fsSL https://bun.sh/install | bash && \ ln -s /root/.bun/bin/bun /usr/local/bin/bun # Pre-install Claude Code and dependencies WORKDIR /opt/claude-action COPY package.json bun.lockb* ./ RUN bun install --frozen-lockfile # Install claude-code globally RUN bun add -g @anthropic-ai/claude-code@1.0.62 # Set up environment ENV PATH="/root/.bun/bin:${PATH}" WORKDIR /workspace