修复 Docker 构建 + 端口可配置
- Dockerfile 设置 GOPROXY=https://goproxy.cn,direct 解决国内网络问题 - 新增 addr 配置项,支持自定义端口,默认 :8080 - docker-compose 端口改为 ${OPS_MCP_PORT:-9090} - 移除 EXPOSE 指令(端口通过 compose 管理) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -1,5 +1,7 @@
|
||||
FROM golang:1.24-alpine AS builder
|
||||
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
@@ -15,5 +17,4 @@ RUN apk add --no-cache docker-cli ca-certificates
|
||||
COPY --from=builder /server /server
|
||||
COPY config/ /config/
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/server"]
|
||||
|
||||
Reference in New Issue
Block a user