Upload folder using huggingface_hub
Browse files- Dockerfile +12 -0
- README.md +44 -5
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SnapOtter — official upstream image, embedded mode (no external Postgres/Redis).
|
| 2 |
+
# Embedded mode puts Postgres 17 + Redis 8 inside the container under /data, which is
|
| 3 |
+
# what a Space needs: there is no sidecar support and no persistent volume here.
|
| 4 |
+
FROM snapotter/snapotter:latest
|
| 5 |
+
|
| 6 |
+
# Hugging Face proxies exactly one port (README app_port). SnapOtter's upstream default
|
| 7 |
+
# is 1349; pin both sides to the platform's convention so a missed PORT injection cannot
|
| 8 |
+
# leave the app listening somewhere the proxy never looks.
|
| 9 |
+
ENV PORT=7860 \
|
| 10 |
+
SNAPOTTER_ANALYTICS=off
|
| 11 |
+
|
| 12 |
+
EXPOSE 7860
|
README.md
CHANGED
|
@@ -1,10 +1,49 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
|
|
|
| 7 |
pinned: false
|
|
|
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SnapOtter
|
| 3 |
+
emoji: 🦦
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
pinned: false
|
| 9 |
+
license: agpl-3.0
|
| 10 |
+
fullWidth: true
|
| 11 |
+
short_description: Self-hosted file toolkit — 200+ convert/OCR/PDF tools
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# SnapOtter on a Hugging Face Docker Space (CPU)
|
| 15 |
+
|
| 16 |
+
[SnapOtter](https://docs.snapotter.com/) is an open-source, self-hosted file-processing
|
| 17 |
+
toolkit: 200+ image / video / audio / PDF / document tools (convert, compress, crop, merge,
|
| 18 |
+
split, OCR, transcribe, convert-presets) behind a web UI, a REST API and pipelines.
|
| 19 |
+
|
| 20 |
+
This Space runs the **official upstream image** (`snapotter/snapotter:latest`, linux/amd64)
|
| 21 |
+
in **embedded mode** — no external Postgres/Redis — on free CPU Basic hardware
|
| 22 |
+
(2 vCPU / 16 GB RAM / 50 GB disk). It is deployed for the `psychoguineapig.com` box, which
|
| 23 |
+
retired its local SnapOtter container on 2026-10-14 to reclaim ~8.6 GB of disk and ~200 MiB
|
| 24 |
+
of RAM; running it here costs the host nothing.
|
| 25 |
+
|
| 26 |
+
## What works and what does not
|
| 27 |
+
|
| 28 |
+
- ✅ All 222 non-AI tools: image resize/crop/convert/compress/watermark, video trim/mute/remux,
|
| 29 |
+
audio convert/normalize/trim, PDF merge/split/compress/rotate/protect, file conversions.
|
| 30 |
+
- ⚠️ AI bundles (background removal, upscale, face enhance, transcription) need `/dev/shm`
|
| 31 |
+
and are slow on 2 vCPU; the platform does not let a Space set `shm_size`, so expect some
|
| 32 |
+
AI tools to fail or crawl. Install bundles from **Settings → AI Features** at your own risk.
|
| 33 |
+
- ⚠️ **This Space is ephemeral.** HF Spaces have no persistent volume any more, so the
|
| 34 |
+
embedded database, users and the file library all reset whenever the container is
|
| 35 |
+
rebuilt or restarted. Treat it as a scratch tool, not storage.
|
| 36 |
+
- ⚠️ Free CPU Basic Spaces sleep after ~48 h idle; the next visit wakes the Space
|
| 37 |
+
(cold start ≈ 1–2 min, including the 8 GB image boot).
|
| 38 |
+
|
| 39 |
+
## Ports
|
| 40 |
+
|
| 41 |
+
`app_port: 7860` and `ENV PORT=7860` — both sides pinned to the platform's convention.
|
| 42 |
+
|
| 43 |
+
## Auth
|
| 44 |
+
|
| 45 |
+
`AUTH_ENABLED` defaults to `true` with a first-run admin account (`DEFAULT_USERNAME` /
|
| 46 |
+
`DEFAULT_PASSWORD` supplied as Space **secrets**, never in this repo), and
|
| 47 |
+
`SKIP_MUST_CHANGE_PASSWORD` is not set by us — the operator changes it on first login.
|
| 48 |
+
The instance sits behind a Cloudflare Access wall at `snapotter.psychoguineapig.com` as well,
|
| 49 |
+
so the app login is defence in depth rather than the only gate on the public Hub URL.
|