FROM node:20-slim RUN apt-get update && apt-get install -y --no-install-recommends \ curl wget ca-certificates \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package.json ./ RUN npm install --production COPY . . ENV PORT=7860 EXPOSE 7860 HEALTHCHECK --interval=60s --timeout=10s --retries=3 \ CMD curl -f http://localhost:7860/health || exit 1 CMD ["node", "server.mjs"]