diff --git a/Dockerfile b/Dockerfile index 1a9eefa..984d162 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ # 第一阶段:构建 FROM golang:1.24.0 AS builder +ENV GOPROXY=https://goproxy.cn,direct + WORKDIR /build # 复制Go模块文件 @@ -18,12 +20,6 @@ FROM ubuntu:24.04 WORKDIR /app -# 安装依赖包 -RUN apt-get update && apt-get install -y --no-install-recommends \ - ca-certificates \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* - # 从构建阶段复制编译好的二进制文件 COPY --from=builder /build/bin/platform_linux_amd64 /app/platform diff --git a/README.md b/README.md index a4e4d25..6bd43bf 100644 --- a/README.md +++ b/README.md @@ -90,9 +90,4 @@ pg-schema-diff apply --schema-dir .\scripts\sql --dsn "host=localhost user=test | 1 | 充值余额 | | 2 | 直接购买 | -### 外部服务 - -服务器ip 110.40.82.248 -api账密:api:123456 - ## 业务逻辑 \ No newline at end of file