From 73540f167082e2d2af4cad251f49b53f125c2462 Mon Sep 17 00:00:00 2001 From: titor Date: Wed, 15 Apr 2026 21:33:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=20debian=20bookworm?= =?UTF-8?q?=20=E9=95=9C=E5=83=8F=E6=9B=BF=E4=BB=A3=20alpine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0d14492..d08bd84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ # # 作者: titor # 创建日期: 2026-04-15 -FROM golang:1.26-alpine AS builder +FROM golang:1.26-bookworm AS builder # 设置工作目录 WORKDIR /build @@ -26,14 +26,10 @@ COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o ttychart-mcp . # 最终镜像 -FROM alpine:latest - -# 设置 apk 国内镜像源 -RUN echo 'https://mirrors.aliyun.com/alpine/v3.15/main' > /etc/apk/repositories && \ - echo 'https://mirrors.aliyun.com/alpine/v3.15/community' >> /etc/apk/repositories +FROM debian:bookworm-slim # 安装 ca-certificates 用于 HTTPS -RUN apk --no-cache add ca-certificates +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/* # 设置工作目录 WORKDIR /app