ci(metis): prefer ipv4 during docker module fetches
This commit is contained in:
parent
5d1b28a3b0
commit
d7a1dc0b74
@ -9,8 +9,12 @@ FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS build
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
ENV GODEBUG=netdns=cgo \
|
||||
GOPROXY=https://proxy.golang.org,direct
|
||||
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN printf 'precedence ::ffff:0:0/96 100\n' >> /etc/gai.conf
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user