FROM node:20-alpine AS build WORKDIR /app COPY package.json tsconfig.base.json ./ COPY apps/frontend/ apps/frontend/ RUN npm install RUN npm run build -w apps/frontend FROM nginx:alpine COPY --from=build /app/apps/frontend/dist /usr/share/nginx/html COPY docker/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]