# Use Node.js official image FROM node:18-slim # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm ci --only=production # Copy application files COPY . . # Expose port 7860 (required for Hugging Face Spaces) EXPOSE 7860 # Start the application CMD ["npm", "start"]