refactor: 后端二进制重命名 ezops → aiops
This commit is contained in:
1 parent
46e61216f6
commit
31c2e338a3
1 file changed
+5
-5
+5
-5
@@ -29,7 +29,7 @@ COPY backend/ ./
|
||||
# 构建后端二进制
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
|
||||
-ldflags="-w -s" \
|
||||
-o ezops ./cmd/
|
||||
-o aiops ./cmd/
|
||||
|
||||
# ==================== Stage 2: Agent Builder ====================
|
||||
FROM golang:1.24-alpine AS agent-builder
|
||||
@@ -65,10 +65,10 @@ ENV TZ=Asia/Shanghai
|
||||
WORKDIR /app
|
||||
|
||||
# 复制后端二进制
|
||||
COPY --from=builder /app/ezops .
|
||||
COPY --from=builder /app/aiops .
|
||||
|
||||
# 创建运行时目录
|
||||
RUN mkdir -p /app/logs /app/uploads /app/agent/bin /app/agent/deploy
|
||||
# 创建运行时目录(agent 二进制 + 安装脚本)
|
||||
RUN mkdir -p /app/agent/bin /app/agent/deploy
|
||||
|
||||
# 复制 agent 二进制(三个平台)
|
||||
COPY --from=agent-builder /agent/bin/aiops-agent-linux-amd64 /app/agent/bin/
|
||||
@@ -84,4 +84,4 @@ EXPOSE 8080
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:8080/health || exit 1
|
||||
|
||||
CMD ["./ezops"]
|
||||
CMD ["./aiops"]
|
||||
Reference in new issue
Block a user