diff --git a/.forgejo/workflows/build-agent-image.yaml b/.forgejo/workflows/build-agent-image.yaml new file mode 100644 index 0000000..a36fc1a --- /dev/null +++ b/.forgejo/workflows/build-agent-image.yaml @@ -0,0 +1,28 @@ +name: Build Agent Image + +on: + push: + paths: + - 'tools/agent/Dockerfile' + workflow_dispatch: + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Forgejo Registry + uses: docker/login-action@v3 + with: + registry: code.mnemo-cards.online + username: ${{ github.actor }} + password: ${{ secrets.FORGEJO_TOKEN }} + + - name: Build and Push + uses: docker/build-push-action@v5 + with: + context: tools/agent + push: true + tags: code.mnemo-cards.online/${{ github.repository }}/agent:latest diff --git a/tools/agent/Dockerfile b/tools/agent/Dockerfile new file mode 100644 index 0000000..7eb9bee --- /dev/null +++ b/tools/agent/Dockerfile @@ -0,0 +1,26 @@ +FROM ghcr.io/cirruslabs/flutter:3.35.5 + +# Install system dependencies +RUN sudo apt-get update && sudo apt-get install -y \ + python3 \ + python3-pip \ + python3-venv \ + nodejs \ + npm \ + jq \ + curl \ + git \ + && sudo rm -rf /var/lib/apt/lists/* + +# Install Cursor CLI +RUN curl https://cursor.com/install -fsS | bash \ + && mv /root/.local/bin/cursor-agent /usr/local/bin/cursor-agent \ + && chmod +x /usr/local/bin/cursor-agent + +# Verify installations +RUN python3 --version && \ + pip3 --version && \ + node --version && \ + npm --version && \ + flutter --version && \ + cursor-agent --version