fix: compilar agent/dist en builder stage y agregar módulos contabilidad/websms

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-20 10:13:17 -05:00
co-authored by Claude Sonnet 4.6
parent ca6a44f64e
commit e28e2823dc
18 changed files with 2889 additions and 0 deletions
+7
View File
@@ -16,6 +16,13 @@ COPY . .
RUN CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -o apiv2 .
# Compilar agente para múltiples plataformas
RUN cd agent && go mod download && \
mkdir -p /app/agent/dist && \
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /app/agent/dist/usite-agent-linux-amd64 . && \
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o /app/agent/dist/usite-agent-linux-arm64 . && \
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="-s -w" -o /app/agent/dist/usite-agent-linux-arm .
# ──────────────────────────────────────────
# Stage 3: Imagen final mínima
# ──────────────────────────────────────────