FROM node:20-slim # Install build essentials for node-llama-cpp RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY . . RUN npm install # Hugging Face Spaces uses port 7860 by default ENV PORT=7860 EXPOSE 7860 CMD ["npm", "start"]