fix: add explicit DNS resolvers to frontend Dockerfile for BuildKit
BuildKit sandbox does not inherit cluster DNS, causing npm ci to fail with EAI_AGAIN. Inject Google/Cloudflare DNS into resolv.conf before running npm ci.
This commit is contained in:
+1
-1
@@ -3,7 +3,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 npm ci
|
RUN echo "nameserver 8.8.8.8" > /etc/resolv.conf && echo "nameserver 1.1.1.1" >> /etc/resolv.conf && 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