Update npm registry URL in Dockerfiles

This commit is contained in:
Mondo Diaz
2026-01-13 23:16:45 +00:00
parent 4cc2c8058f
commit 525dfd3d03
2 changed files with 6 additions and 1 deletions

View File

@@ -1,8 +1,13 @@
# Frontend build stage
FROM node:20-alpine AS frontend-builder
ARG NPM_REGISTRY=https://deps.global.bsf.tools/npm/
WORKDIR /app/frontend
# Configure npm registry if provided
RUN if [ -n "$NPM_REGISTRY" ]; then npm config set registry "$NPM_REGISTRY"; fi
# Copy package files
COPY frontend/package*.json ./
RUN npm install