# NOTE: mesh.apps.Service auto-builds pnpm-workspace apps on the host and
# generates its own Docker context — this Dockerfile is a fallback for manual
# builds. The build needs devDeps (esm-bundle bundles workspace imports into a
# single file), so install ALL deps, not --omit=dev.
FROM node:20-slim

WORKDIR /app

COPY package*.json ./
RUN npm ci

COPY . .
RUN npm run build

EXPOSE 3000

CMD ["node", "dist/main.js"]
