update cicd

This commit is contained in:
2026-04-02 11:01:30 +00:00
parent 863a0ea2f6
commit 5a7f29c116
54 changed files with 4298 additions and 473 deletions

16
Dockerfile.agent Normal file
View File

@@ -0,0 +1,16 @@
FROM golang:1.25.6-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags="-s -w" -o agent ./cmd/agent
FROM alpine:latest
RUN apk add --no-cache docker-cli
COPY --from=builder /app/agent /bin/agent
CMD ["/bin/agent"]