FROM node:18-alpine AS builder WORKDIR /app COPY ./package*.json ./ RUN npm ci COPY . . RUN ls -lah RUN npm run build FROM nginx:latest COPY --from=builder /app/dist /usr/share/nginx_cool/dist COPY --from=builder /app/nginx/nginx.conf /etc/nginx/nginx.conf EXPOSE 80