# Use latest Node.js (official) FROM node:latest # Set working directory WORKDIR / # Copy package files first (for caching) COPY package*.json ./ # Install dependencies RUN npm install --production # Copy rest of the app COPY . . # Expose port EXPOSE 8501 # Start app ENTRYPOINT ["node", "index.js"]