i
File size: 990 Bytes
55d4138
 
348c73a
55d4138
 
348c73a
 
 
 
55d4138
093369b
55d4138
348c73a
 
 
 
 
55d4138
 
 
 
348c73a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]