Spaces:
Runtime error
Runtime error
fix: add HEALTHCHECK to Dockerfile - prevents silent dead container after 24h
Browse files36 unmodified lines3738394041424336 unmodified lines# HuggingFace Spaces uses port 7860EXPOSE 7860# Copy and run entrypointCOPY docker-entrypoint.sh /docker-entrypoint.shRUN chmod +x /docker-entrypoint.shCMD ["/docker-entrypoint.sh"]36 unmodified lines37383940414243444546474836 unmodified lines# HuggingFace Spaces uses port 7860EXPOSE 7860# Health check - confirms both frontend and backend are alive# start-period gives time for model warmup before HF marks it unhealthyHEALTHCHECK --interval=30s --timeout=15s --start-period=120s --retries=5 \CMD curl --fail --silent http://localhost:7860/ || exit 1# Copy and run entrypointCOPY docker-entrypoint.sh /docker-entrypoint.shRUN chmod +x /docker-entrypoint.shCMD ["/docker-entrypoint.sh"]
Dockerfile+6-1