This commit is contained in:
Zeeshaun
2026-03-25 15:45:06 +00:00
parent 3dc107885f
commit 3b97eb9a01
+15 -2
View File
@@ -2,9 +2,22 @@ FROM node:14-bullseye AS build
WORKDIR /app
COPY package.json package-lock.json .npmrc ./
ARG AZURE_DEVOPS_PAT
COPY package.json package-lock.json ./
RUN npm install -g [email protected]
RUN npm ci --unsafe-perm --before=2025-09-01 --ignore-scripts
RUN set -eu; \
test -n "${AZURE_DEVOPS_PAT:-}"; \
PAT_B64="$(printf '%s' "$AZURE_DEVOPS_PAT" | base64 | tr -d '\n')"; \
printf '%s\n' \
'registry=https://landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/' \
'always-auth=true' \
'//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:username=pat' \
"//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:_password=${PAT_B64}" \
'//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:email=build@local' \
> .npmrc; \
npm ci --unsafe-perm --before=2025-09-01 --ignore-scripts; \
rm -f .npmrc
COPY . ./