FROM node:18-alpine AS build WORKDIR /app COPY package.json package-lock.json ./ RUN npm install -g @angular/cli RUN npm install --force # force is required for Tailwind COPY . . RUN npm run build -- --configuration production FROM nginx:alpine COPY --from=build /app/dist/swisssign-challenge-ui/browser /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]