FROM node:20 # Set the working directory WORKDIR /app # Copy package.json and install dependencies COPY package*.json ./ RUN npm install # Copy the rest of the application COPY . . # Hugging Face Spaces typically use port 7860 ENV PORT=7860 EXPOSE 7860 # Start the Node.js server CMD ["node", "server/index.js"]