修复了一些已知问题

This commit is contained in:
2026-05-21 23:02:03 +08:00
parent 27b207d0d5
commit 028dea8879
2 changed files with 14 additions and 0 deletions

View File

@@ -10,6 +10,13 @@ RUN --mount=type=cache,target=/go/pkg/mod \
COPY . . COPY . .
# 下载 ip2region 地理数据库 (编译时 embed 需要)
RUN wget -q -O store/ipdb/ip2region.xdb \
https://raw.githubusercontent.com/lionsoul2014/ip2region/master/data/ip2region.xdb \
|| curl -sL -o store/ipdb/ip2region.xdb \
https://raw.githubusercontent.com/lionsoul2014/ip2region/master/data/ip2region.xdb \
|| touch store/ipdb/ip2region.xdb
ARG TARGETOS TARGETARCH VERSION ARG TARGETOS TARGETARCH VERSION
RUN --mount=type=cache,target=/root/.cache/go-build \ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/go/pkg/mod \

View File

@@ -10,6 +10,13 @@ RUN --mount=type=cache,target=/go/pkg/mod \
COPY . . COPY . .
# 下载 ip2region 地理数据库 (编译时 embed 需要)
RUN wget -q -O store/ipdb/ip2region.xdb \
https://raw.githubusercontent.com/lionsoul2014/ip2region/master/data/ip2region.xdb \
|| curl -sL -o store/ipdb/ip2region.xdb \
https://raw.githubusercontent.com/lionsoul2014/ip2region/master/data/ip2region.xdb \
|| touch store/ipdb/ip2region.xdb
ARG TARGETOS TARGETARCH ARG TARGETOS TARGETARCH
RUN --mount=type=cache,target=/root/.cache/go-build \ RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \ --mount=type=cache,target=/go/pkg/mod \