FROM node:20-bookworm # Create app directory WORKDIR /app # Install app dependencies COPY package*.json ./ RUN npm install # Bundle app source COPY . . # Expose port 7860 (Hugging Face Spaces requirement) EXPOSE 7860 # Set environment variables ENV PORT=7860 # Run the search API server CMD [ "node", "server.js" ]