go-crm initial

This commit is contained in:
2026-04-21 17:34:58 -03:00
parent 5b8107c169
commit f8135d0e1b
24 changed files with 641 additions and 125 deletions

View File

@@ -10,10 +10,17 @@ RUN pacman -Syu --noconfirm && \
openssh \
opencode \
curl \
go \
sqlite \
&& pacman -Scc --noconfirm
RUN npx -y skills add JuliusBrussee/caveman -g -a opencode -s caveman -y
# 2. Install air using Go
RUN go install github.com/air-verse/air@latest
# Add Go binaries to your PATH so you can actually run 'air'
ENV PATH="/root/go/bin:${PATH}"
# Git safe directory system-wide config
RUN git config --system --add safe.directory /workspace

Binary file not shown.

View File

@@ -15,11 +15,22 @@ services:
- /home/ga/.ssh:/root/.ssh
# Persist opencode auth
- opencode-auth:/root/.local/share/opencode
# Go CRM database
- ./data:/workspace/data
environment:
- OPENCODE_API_KEY=${OPENCODE_API_KEY}
stdin_open: true
tty: true
ports:
- "8080:8080"
working_dir: /workspace
networks:
- crm-network
networks:
crm-network:
name: crm-network
external: true
volumes:
opencode-auth:
opencode-auth: