FROM node:18-alpine

WORKDIR /app

COPY package*.json ./
RUN npm install --omit=dev

COPY . .

# Expected Env Vars
ENV OLLAMA_URL=http://ollama.ai-agents.svc.cluster.local:11434/api/generate
ENV WHATSAPP_GATEWAY_URL=http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/api/send-message
ENV WHATSAPP_TO=+14085505485
ENV OLLAMA_MODEL=qwen2.5:0.5b

EXPOSE 5002

CMD ["node", "index.js"]
