FROM node:22-slim WORKDIR /app COPY package*.json ./ RUN npm ci --omit=dev 2>/dev/null || npm install COPY . . RUN npm run build 2>/dev/null || true EXPOSE 7860 HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ CMD curl -f http://localhost:7860/health || exit 1 CMD ["node", "server.js"]