Adding
This commit is contained in:
@@ -1,34 +1,17 @@
|
||||
FROM node:14-buster AS build
|
||||
FROM node:14-bullseye AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends python make g++ && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install -g npm@9
|
||||
RUN npm pkg delete dependencies.node
|
||||
|
||||
ARG PAT=vvqu3q252m5kqwptu4tavha4ghk4svhmwsahb2kvlu22ogiegt6q
|
||||
RUN TOKEN="$(printf "%s" "${PAT}" | base64 | tr -d '\n')" && \
|
||||
printf "registry=https://landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/\n" > .npmrc && \
|
||||
printf "always-auth=true\n" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:username=azdo\n" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:_password=%s\n" "${TOKEN}" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/registry/:[email protected]\n" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/:username=azdo\n" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/:_password=%s\n" "${TOKEN}" >> .npmrc && \
|
||||
printf "//landmarkcu.pkgs.visualstudio.com/_packaging/LCU-Internal/npm/:[email protected]\n" >> .npmrc
|
||||
|
||||
RUN npm install --unsafe-perm
|
||||
RUN npm ci --unsafe-perm --before=2025-09-01 --ignore-scripts
|
||||
|
||||
COPY . ./
|
||||
|
||||
RUN npm run build
|
||||
RUN npm run postinstall
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
RUN npx ng build
|
||||
|
||||
FROM nginx:1.25-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/build /usr/share/nginx/html
|
||||
|
||||
Reference in New Issue
Block a user