# Use the official Node.js LTS image FROM node:18 # Set working directory WORKDIR /app # Copy package.json and package-lock.json COPY package*.json ./ # Install dependencies RUN npm install # Copy the rest of the server code COPY . . # Expose the port (Hugging Face expects 7860 by default, but you can set it) EXPOSE 7860 # Start the server, binding to 0.0.0.0 and port 7860 ENV PORT=7860 CMD [ "npm", "start" ]