fix: set BuildKit worker networkMode=host for dashboard build
The BuildKit sandbox cannot resolve registry.npmjs.org DNS. Setting networkMode=host in the worker config forces all RUN steps to use the host network stack, which has confirmed internet access.
This commit is contained in:
@@ -200,6 +200,8 @@ steps:
|
|||||||
buildx_flags: --driver-opt network=host --allow network.host
|
buildx_flags: --driver-opt network=host --allow network.host
|
||||||
insecure: true
|
insecure: true
|
||||||
buildkit_config: |
|
buildkit_config: |
|
||||||
|
[worker.oci]
|
||||||
|
networkMode = "host"
|
||||||
[registry."registry.celestium.life"]
|
[registry."registry.celestium.life"]
|
||||||
insecure = true
|
insecure = true
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
FROM registry.celestium.life/dockerhub-cache/library/node:24-alpine AS build
|
FROM registry.celestium.life/dockerhub-cache/library/node:24-alpine AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
RUN --network=host npm ci
|
RUN npm ci
|
||||||
COPY . .
|
COPY . .
|
||||||
ARG VITE_QUERY_API_URL=""
|
ARG VITE_QUERY_API_URL=""
|
||||||
ARG VITE_SYMBOL_REGISTRY_URL=""
|
ARG VITE_SYMBOL_REGISTRY_URL=""
|
||||||
|
|||||||
Reference in New Issue
Block a user