# Use Node 18 FROM node:18 # Set working directory WORKDIR /app # Copy everything (safe) COPY . . # If your code is in a 'backend' subfolder, uncomment this: WORKDIR /app/backend # Install dependencies (make sure package.json is in the right place) RUN npm install # Expose HF's required port EXPOSE 7860 # Run the server CMD ["node", "server.js"]