go-proxy ls-route now query api server first, then fallback to read from config file

This commit is contained in:
yusing
2024-09-30 15:56:03 +08:00
parent b38d7595a7
commit 9065d990e5
4 changed files with 28 additions and 9 deletions

View File

@@ -5,11 +5,11 @@ RUN apk add --no-cache tzdata
WORKDIR /src
# Only copy go.mod and go.sum initially for better caching
COPY go.mod go.sum /src
COPY go.mod go.sum /src/
# Utilize build cache
RUN --mount=type=cache,target="/go/pkg/mod" \
go mod graph | awk '{if ($1 !~ "@") print $2}' | xargs go get
go mod download -x
ENV GOCACHE=/root/.cache/go-build