修复了一些已知问题
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user