From 91ef0b0ac59c1308979facf366c850458370652f Mon Sep 17 00:00:00 2001 From: luorijun Date: Sat, 19 Apr 2025 18:15:46 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=20=E6=B7=BB=E5=8A=A0=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++------ README.md | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) 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