Files
monorepo/LCU.WebApps.Collections.RepoClient/Dockerfile
T
2026-03-25 10:31:51 -05:00

22 lines
371 B
Docker

FROM node:14-bullseye AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --unsafe-perm --before=2025-09-01 --ignore-scripts
COPY . ./
RUN npm run postinstall
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
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]