FROM node:22-alpine

WORKDIR /app/services/ai-workspace-assistant

COPY ai-workspace-assistant/package*.json ./
RUN npm ci --omit=dev

COPY ai-workspace-assistant/src ./src
COPY ai-workspace-assistant/docs ./docs
COPY ontology-core /app/services/ontology-core

ENV NODE_ENV=production
EXPOSE 18082

CMD ["npm", "start"]
