| # SearXNG Dockerfile for Hugging Face Spaces | |
| # Optimized for news search with fast engines only | |
| FROM searxng/searxng:latest | |
| # Set environment variables | |
| ENV SEARXNG_BASE_URL=https://peterase-searxng.hf.space/ \ | |
| SEARXNG_SECRET=arki-ai-searxng-secret-key-2026 \ | |
| SEARXNG_PORT=7860 \ | |
| SEARXNG_BIND_ADDRESS=0.0.0.0 | |
| # Copy custom settings | |
| COPY settings.yml /etc/searxng/settings.yml | |
| # Expose port 7860 (HF Spaces requirement) | |
| EXPOSE 7860 | |
| # Health check | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ | |
| CMD wget --quiet --tries=1 --spider http://localhost:7860/ || exit 1 | |
| # Start SearXNG | |
| CMD ["python", "searx/webapp.py"] | |