Spaces:
Sleeping
Sleeping
Download Dockerfile from knowledge-for-all/Kiwix: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/knowledge-for-all/Kiwix/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/knowledge-for-all/Kiwix/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/knowledge-for-all/Kiwix/resolve/main/Dockerfile
648 Bytes
| FROM ghcr.io/kiwix/kiwix-serve:3.8.2 AS kiwix | |
| FROM python:3.10-slim | |
| # Binaires officiels | |
| COPY --from=kiwix /usr/local/bin/kiwix-serve /usr/local/bin/ | |
| COPY --from=kiwix /usr/local/bin/kiwix-manage /usr/local/bin/ | |
| # Dépendances légères (wget pour les téléchargements) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| wget ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| EXPOSE 7860 | |
| # Script de démarrage | |
| COPY start.sh /usr/local/bin/start.sh | |
| RUN chmod +x /usr/local/bin/start.sh | |
| # Fichier de configuration des téléchargements | |
| COPY library.json /home/default/library.json | |
| ENTRYPOINT ["/usr/local/bin/start.sh"] |