AnesKAM commited on
Commit
06a2137
·
verified ·
1 Parent(s): b4cd4b3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -7
Dockerfile CHANGED
@@ -1,7 +1,16 @@
1
- FROM python:3.9-slim
2
- WORKDIR /app
3
- COPY requirements.txt .
4
- RUN pip install --no-cache-dir -r requirements.txt
5
- COPY . .
6
- ENV PORT=7860
7
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]
 
 
 
 
 
 
 
 
 
 
1
+ FROM searxng/searxng:latest
2
+
3
+ # إعداد المنفذ الخاص بـ Hugging Face
4
+ ENV SEARXNG_PORT=7860
5
+ ENV SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml
6
+
7
+ # نسخ ملف الإعدادات
8
+ COPY settings.yml /etc/searxng/settings.yml
9
+
10
+ # ضمان الصلاحيات لتجنب الـ Crash
11
+ USER root
12
+ RUN chmod -R 777 /etc/searxng
13
+
14
+ EXPOSE 7860
15
+
16
+ CMD ["searxng"]