FROM node:alpine as builder WORKDIR /build COPY frontend/package.json frontend/package-lock.json ./ RUN npm install && mkdir /ng-app && cp -r node_modules/ /ng-app WORKDIR /ng-app COPY frontend . RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none FROM nginx:alpine COPY nginx/nginx.conf /etc/nginx/nginx.conf COPY --from=builder /ng-app/dist /quotes/quotes/assets EXPOSE 80 ENTRYPOINT ["nginx", "-g", "daemon off;"]