Spaces:
Runtime error
Runtime error
Download Dockerfile from Urban-Guy/FileBrowser: direct link, hf CLI and curl.
- Browser
- Download file 484 Bytes
-
https://huggingface.co/spaces/Urban-Guy/FileBrowser/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Urban-Guy/FileBrowser/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Urban-Guy/FileBrowser/resolve/main/Dockerfile
484 Bytes
| # Official FileBrowser Quantum slim image | |
| FROM gtstef/filebrowser:stable-slim | |
| # Create persistent storage directory | |
| RUN mkdir -p /data | |
| VOLUME ["/data"] | |
| # Hugging Face Spaces requires port 7860 | |
| EXPOSE 7860 | |
| # Set admin password | |
| ENV FILEBROWSER_ADMIN_PASSWORD=admin | |
| # Start FileBrowser Quantum on 0.0.0.0:7860 | |
| # Set root to /data so database and files are persistent | |
| CMD ["filebrowser", "--root", "/data", "--address", "0.0.0.0", "--port", "7860", "--database", "/data/database.db"] | |