# Base image FROM node:18-slim # Set work directory WORKDIR /app # Copy package.json and install dependencies COPY package.json ./ RUN npm install --production # Copy source code COPY . . # Expose port (Hugging Face expects 7860 by default, but you can use 3000) EXPOSE 3000 # Start app CMD ["node", "index.js"]