FROM node:20-alpine3.16 AS build

WORKDIR /dist/src/app

RUN npm cache clean --force

COPY . .
RUN npm install
RUN npm run build --prod


FROM nginx:latest AS ngi

 
COPY --from=build /dist/src/app/dist/frontend /usr/share/nginx/html
# COPY ./nginx/default.conf  /etc/nginx/conf.d/default.conf


EXPOSE 80