ci: fix runner setup, integrate nexus npm proxy and safe vpn wrapper
Deploy Canina / deploy (push) Failing after 2s

This commit is contained in:
parsa aghaei committed 2026-08-09 11:23:21 +03:30
1 parent 4e304944ef
commit c1bc9e1994
3 files changed
+31 -5

No files matched your search

+9
View File
@@ -1,6 +1,15 @@
FROM node:20-alpine AS builder
RUN apk add --no-cache openssl 2>/dev/null || true
WORKDIR /app
# Optional: Use Nexus as npm registry (pass --build-arg NPM_REGISTRY=http://nexus:8081/repository/npm/)
ARG NPM_REGISTRY=
RUN if [ -n "$NPM_REGISTRY" ]; then \
npm config set registry "$NPM_REGISTRY" && \
npm config set strict-ssl false && \
echo "Using npm registry: $NPM_REGISTRY"; \
fi
COPY package*.json ./
RUN npm ci --prefer-offline --no-audit
COPY . .