Download Dockerfile from abc1181/google: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/abc1181/google/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/abc1181/google/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/abc1181/google/resolve/main/Dockerfile
639 Bytes
| FROM searxng/searxng:latest | |
| USER node | |
| # 1. Force environment variables for Hugging Face | |
| ENV SEARXNG_PORT=7860 | |
| ENV SEARXNG_BIND_ADDRESS=0.0.0.0 | |
| ENV SEARXNG_SETTINGS_PATH=/etc/searxng/settings.yml | |
| # 2. Create directory and set permissions for User 1000 (HF default) | |
| RUN mkdir -p /etc/searxng && \ | |
| chown -R 1000:1000 /etc/searxng && \ | |
| chown -R 1000:1000 /usr/local/searxng | |
| # 3. Copy settings and ensure User 1000 owns it | |
| COPY --chown=1000:1000 settings.yml /etc/searxng/settings.yml | |
| # 4. Switch to the HF User | |
| USER 1000 | |
| # 5. Launch Python module directly to bypass root-only startup scripts | |
| CMD ["python3", "-m", "searx.webapp"] |