# Use Node.js latest LTS FROM node:20-slim # Create and define the application's working directory WORKDIR /app # Copy package files and install dependencies COPY package*.json ./ RUN npm install --production # Copy the rest of the application code COPY . . # Expose the default Hugging Face Spaces port EXPOSE 7860 # Start the application CMD ["node", "server/index.js"]