Spaces:
Sleeping
Sleeping
Download Dockerfile from knowledge-for-all/ArchiveBox: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/spaces/knowledge-for-all/ArchiveBox/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/knowledge-for-all/ArchiveBox/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/knowledge-for-all/ArchiveBox/resolve/main/Dockerfile
694 Bytes
| FROM archivebox/archivebox:latest | |
| # On passe root pour les modifications | |
| USER root | |
| # Installation de gosu (permettra de lancer ArchiveBox sous l'utilisateur archivebox) | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends gosu wget ca-certificates python3 && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Définition des identifiants administrateur par défaut (modifiables) | |
| ENV ADMIN_USERNAME=admin | |
| ENV ADMIN_PASSWORD=admin123 | |
| # Script de démarrage | |
| COPY start.sh /usr/local/bin/start.sh | |
| RUN chmod +x /usr/local/bin/start.sh | |
| # Fichier JSON contenant les URLs à archiver automatiquement | |
| COPY library.json /defaults/library.json | |
| EXPOSE 7860 | |
| ENTRYPOINT ["/usr/local/bin/start.sh"] |