# Ultra-stable Dockerfile - NO database connections FROM node:20-alpine # Create app directory WORKDIR /app # Only copy what we absolutely need COPY stable-server.js ./ # Create minimal package.json with only Express RUN echo '{"name":"edichat-stable","version":"1.0.0","main":"stable-server.js","dependencies":{"express":"^4.18.2"}}' > package.json # Install only Express - no other dependencies RUN npm install express --save --silent # Set environment to disable all logging ENV NODE_ENV=production ENV PORT=7860 ENV DISABLE_LOGGING=true # Expose port EXPOSE 7860 # Simple health check HEALTHCHECK --interval=60s --timeout=5s --start-period=10s --retries=2 \ CMD wget --quiet --tries=1 --spider http://localhost:7860/health || exit 1 # Start ONLY the stable server CMD ["node", "stable-server.js"]