# Stage 1: Build the Angular application FROM node:18-alpine AS build WORKDIR /app COPY develop_a_working_20251006_065420-develop_a_working_20251006_065420-f-f/authsec_angular/frontend/angular-clarity-master/package.json ./ COPY develop_a_working_20251006_065420-develop_a_working_20251006_065420-f-f/authsec_angular/frontend/angular-clarity-master/package-lock.json ./ RUN npm ci COPY develop_a_working_20251006_065420-develop_a_working_20251006_065420-f-f/authsec_angular/frontend/angular-clarity-master/ . RUN npm run build -- --configuration=production # Stage 2: Serve the application with Nginx FROM nginx:alpine COPY --from=build /app/dist/angular-clarity-master /usr/share/nginx/html # Expose port 80 for the frontend application EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]