Download Dockerfile from AnesKAM/25: direct link, hf CLI and curl.
- Browser
- Download file 1.51 kB
-
https://huggingface.co/spaces/AnesKAM/25/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnesKAM/25/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnesKAM/25/resolve/main/Dockerfile
1.51 kB
| # 1. جلب النسخة الرسمية | |
| FROM searxng/searxng:latest | |
| # 2. إعداد المتغيرات الأساسية | |
| ENV PORT=7860 | |
| ENV SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml | |
| USER root | |
| # 3. سكربت سحري لإنشاء الإعدادات أوتوماتيكياً أثناء البناء | |
| RUN mkdir -p /etc/searxng && \ | |
| echo "use_default_settings: True" > /etc/searxng/settings.yml && \ | |
| echo "server:" >> /etc/searxng/settings.yml && \ | |
| echo " port: 7860" >> /etc/searxng/settings.yml && \ | |
| echo " bind_address: '0.0.0.0'" >> /etc/searxng/settings.yml && \ | |
| echo " secret_key: '$(openssl rand -hex 32)'" >> /etc/searxng/settings.yml && \ | |
| echo " image_proxy: True" >> /etc/searxng/settings.yml && \ | |
| echo "ui:" >> /etc/searxng/settings.yml && \ | |
| echo " default_locale: 'ar'" >> /etc/searxng/settings.yml && \ | |
| echo " theme: simple" >> /etc/searxng/settings.yml && \ | |
| echo " infinite_scroll: True" >> /etc/searxng/settings.yml && \ | |
| echo "search:" >> /etc/searxng/settings.yml && \ | |
| echo " autocomplete: 'google'" >> /etc/searxng/settings.yml && \ | |
| echo "brand:" >> /etc/searxng/settings.yml && \ | |
| echo " instance_name: 'AnesNT Search'" >> /etc/searxng/settings.yml | |
| # 4. ضبط الصلاحيات للمستخدم الخاص بالمنصة (1000) | |
| RUN chown -R 1000:1000 /etc/searxng | |
| USER 1000 | |
| # 5. فتح المنفذ المطلوب | |
| EXPOSE 7860 | |
| # 6. أمر التشغيل النهائي | |
| CMD ["python3", "/usr/local/searxng/searxng/webapp.py"] |