# Use the official Node.js image FROM node:18-alpine # Set the working directory inside the container WORKDIR /app # Copy package files and install dependencies COPY package.json . RUN npm install # Copy the rest of your application code COPY server.js . # Hugging Face Spaces expects apps to run on port 7860 EXPOSE 7860 # Start the server CMD ["node", "server.js"]