# Use the official Node.js image FROM node:18 # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm install # Copy source code COPY . . # Expose port 7860 (Standard for Hugging Face Spaces) EXPOSE 7860 # Start the application CMD ["node", "server.js"]