| FROM searxng/searxng:latest |
|
|
| # إعدادات المنافذ الأساسية |
| ENV PORT=7860 |
| ENV SEARXNG_PORT=7860 |
| ENV SEARXNG_SECRET="anesnt_secure_$(openssl rand -hex 16)" |
|
|
| # تفعيل الـ JSON وتعطيل المحركات المكسورة عبر متغيرات البيئة |
| ENV SEARXNG_SETTINGS="{\"use_default_settings\":false,\"server\":{\"port\":7860,\"bind_address\":\"0.0.0.0\",\"base_url\":false},\"search\":{\"formats\":[\"html\",\"json\"]},\"engines\":[{\"name\":\"duckduckgo\",\"engine\":\"duckduckgo\",\"shortcut\":\"ddg\"},{\"name\":\"wikidata\",\"disabled\":true},{\"name\":\"ahmia\",\"disabled\":true}]}" |
|
|
| USER root |
|
|
| # سكريبت التشغيل الذي يضمن عدم توقف المحرك |
| RUN echo '#!/bin/sh' > /start_anesnt.sh && \ |
| echo 'echo "[Genisi] Launching AnesNT Engine..."' >> /start_anesnt.sh && \ |
| echo 'python3 -m searx.webapp' >> /start_anesnt.sh && \ |
| chmod +x /start_anesnt.sh |
|
|
| USER searxng |
| EXPOSE 7860 |
|
|
| CMD ["/bin/sh", "/start_anesnt.sh"] |