# Vue panel. The built app calls /api on the same host; Traefik sends that to the API. FROM node:20-bookworm-slim AS build WORKDIR /app COPY package.json package-lock.json ./ COPY apps/api/package.json apps/api/package.json COPY apps/web/package.json apps/web/package.json COPY packages/shared/package.json packages/shared/package.json RUN npm ci COPY apps/web apps/web COPY packages/shared packages/shared RUN npm run build -w @mento/shared && npm run build -w @mento/web FROM nginx:1.27-alpine COPY docker/web.nginx.conf /etc/nginx/conf.d/default.conf COPY --from=build /app/apps/web/dist /usr/share/nginx/html EXPOSE 80