docker
This commit is contained in:
parent
b36083f09b
commit
09515c196c
2 changed files with 54 additions and 0 deletions
28
.forgejo/workflows/build-agent-image.yaml
Normal file
28
.forgejo/workflows/build-agent-image.yaml
Normal file
|
|
@ -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
|
||||
26
tools/agent/Dockerfile
Normal file
26
tools/agent/Dockerfile
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue