Spaces:
Sleeping
Sleeping
Download Dockerfile from knowledge-for-all/Trilium: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/spaces/knowledge-for-all/Trilium/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/knowledge-for-all/Trilium/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/knowledge-for-all/Trilium/resolve/main/Dockerfile
475 Bytes
| FROM triliumnext/trilium:latest | |
| # Passer root pour les modifications | |
| USER root | |
| # Rendre su exécutable avec le bit setuid pour que le script de l'image puisse l'utiliser | |
| RUN apk add --no-cache shadow && chmod +s /bin/su | |
| # Création du dossier persistant et définition des variables | |
| RUN mkdir -p /data/trilium-data | |
| ENV TRILIUM_DATA_DIR=/data/trilium-data | |
| ENV TRILIUM_PORT=7860 | |
| ENV TRILIUM_HOST=0.0.0.0 | |
| # On laisse le point d’entrée par défaut de l’image | |
| EXPOSE 7860 |