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:
Celes Renata
2026-07-13 05:02:35 +00:00
parent d762a2b76f
commit 05e6f21a16
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -200,6 +200,8 @@ steps:
buildx_flags: --driver-opt network=host --allow network.host
insecure: true
buildkit_config: |
[worker.oci]
networkMode = "host"
[registry."registry.celestium.life"]
insecure = true
[registry."docker.io"]
+1 -1
View File
@@ -4,7 +4,7 @@
FROM registry.celestium.life/dockerhub-cache/library/node:24-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN --network=host npm ci
RUN npm ci
COPY . .
ARG VITE_QUERY_API_URL=""
ARG VITE_SYMBOL_REGISTRY_URL=""