diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f5ccbc00..24d1f71c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - agent: [claude, codex, openclaw, opencode, kilocode, zeroclaw, hermes, junie] + agent: [claude, codex, cursor, openclaw, opencode, kilocode, zeroclaw, hermes, junie] steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 diff --git a/sh/docker/cursor.Dockerfile b/sh/docker/cursor.Dockerfile new file mode 100644 index 00000000..adc87232 --- /dev/null +++ b/sh/docker/cursor.Dockerfile @@ -0,0 +1,21 @@ +FROM ubuntu:24.04 + +ENV DEBIAN_FRONTEND=noninteractive + +# Base packages +RUN apt-get update -y && \ + apt-get install -y --no-install-recommends \ + curl git ca-certificates unzip && \ + rm -rf /var/lib/apt/lists/* + +# Cursor CLI +RUN curl -fsSL https://cursor.com/install | bash || \ + [ -f /root/.local/bin/cursor ] + +# Ensure tools are on PATH for all shells +RUN for rc in /root/.bashrc /root/.zshrc; do \ + grep -q '.local/bin' "$rc" 2>/dev/null || \ + echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$rc"; \ + done + +CMD ["/bin/sleep", "inf"]