From dd736bc927a20800724b40a0b3a8cfdd3ece640f Mon Sep 17 00:00:00 2001 From: zhouyonggao <1971162852@qq.com> Date: Fri, 28 Nov 2025 17:11:35 +0800 Subject: [PATCH] =?UTF-8?q?ci(Dockerfile):=20=E4=BD=BF=E7=94=A8=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=BC=98=E5=8C=96apk=E5=AE=89=E8=A3=85=E9=80=9F?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用--mount=type=cache参数缓存apk包,减少重复构建时的下载时间 --- Dockerfile | 2 +- log/server-20251128.log | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 log/server-20251128.log diff --git a/Dockerfile b/Dockerfile index 314e816..0b62964 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.21-alpine AS build WORKDIR /app -RUN apk add --no-cache build-base +RUN --mount=type=cache,target=/var/cache/apk apk add build-base COPY server/ ./server/ COPY web/ ./web/ WORKDIR /app/server diff --git a/log/server-20251128.log b/log/server-20251128.log new file mode 100644 index 0000000..407e018 --- /dev/null +++ b/log/server-20251128.log @@ -0,0 +1,18 @@ +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required +connecting YMT MySQL: : db user +connecting Marketing MySQL: : db user +YMT MySQL DSN missing: host, port, user, name required