FROM python:3.11-slim ENV DEBIAN_FRONTEND=noninteractive \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 RUN apt-get update && apt-get install -y --no-install-recommends \ redis-server \ supervisor \ wget \ curl \ build-essential \ git \ && rm -rf /var/lib/apt/lists/* WORKDIR /app # Клонируем SearXNG RUN git clone --depth 1 https://github.com/searxng/searxng.git /app/searxng # Устанавливаем SearXNG с ВСЕМИ зависимостями через requirements.txt WORKDIR /app/searxng RUN pip install --no-cache-dir -r requirements.txt && \ pip install --no-cache-dir --no-deps -e . # Ставим API-зависимости WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY supervisord.conf /etc/supervisor/supervisord.conf COPY searxng-settings.yml /app/searxng-settings.yml COPY main.py . EXPOSE 7860 CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]