Spaces:
Sleeping
Sleeping
Download Dockerfile from knowledge-for-all/Calibre: direct link, hf CLI and curl.
- Browser
- Download file 616 Bytes
-
https://huggingface.co/spaces/knowledge-for-all/Calibre/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/knowledge-for-all/Calibre/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/knowledge-for-all/Calibre/resolve/main/Dockerfile
616 Bytes
| FROM linuxserver/calibre-web:latest | |
| # Installation de calibre (pour calibredb) et wget | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends wget ca-certificates calibre && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Port 7860 imposé par Hugging Face | |
| ENV CALIBRE_PORT=7860 | |
| # Identifiants administrateur par défaut | |
| ENV APP_USER=admin | |
| ENV APP_PASS=admin123 | |
| # Copie du script d'importation automatique | |
| COPY start.sh /etc/cont-init.d/99-ebook-import | |
| RUN chmod +x /etc/cont-init.d/99-ebook-import | |
| # Fichier de configuration des ebooks à télécharger | |
| COPY library.json /defaults/library.json | |
| EXPOSE 7860 |