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:
Celes Renata
2026-07-13 04:38:59 +00:00
parent 13729bda98
commit 46d7699ed0
+1 -1
View File
@@ -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=""