Files
stonks-oracle/frontend/Dockerfile
T
Celes Renata 05e6f21a16 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.
2026-07-13 05:02:35 +00:00

20 lines
672 B
Docker

# syntax=docker/dockerfile:1
# Stage 1: Build
# Base images: uses Harbor proxy cache in CI, falls back to Docker Hub externally
FROM registry.celestium.life/dockerhub-cache/library/node:24-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
ARG VITE_QUERY_API_URL=""
ARG VITE_SYMBOL_REGISTRY_URL=""
ARG VITE_RISK_ENGINE_URL=""
RUN npm run build
# Stage 2: Serve (unprivileged nginx, runs as uid 101, port 8080)
FROM registry.celestium.life/dockerhub-cache/nginxinc/nginx-unprivileged:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080
CMD ["nginx", "-g", "daemon off;"]