# Use a lightweight Node.js image FROM node:18-alpine # Set working directory WORKDIR /app # Initialize project and install dependencies RUN npm init -y && \ npm install express cors node-fetch # Copy the server code COPY server.js . # Expose port 7860 (Hugging Face default) EXPOSE 7860 # Run the server CMD ["node", "server.js"]