mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Remove all ML pip installs (onnxruntime, rembg, realesrgan, paddlepaddle, mediapipe, codeformer), model downloads, and post-install fixups from the Dockerfile. The base image now ships only Node.js + Sharp + Python with numpy/Pillow/opencv. AI features are installed on-demand at runtime via the feature manifest and install_feature.py script. Key changes: - Remove SKIP_MODEL_DOWNLOADS build arg (no longer needed) - Remove apt-get purge of build-essential (needed for runtime pip installs) - Remove PaddleX symlinks and facexlib weight directory setup - Add COPY of feature-manifest.json and install_feature.py - Update PYTHON_VENV_PATH to /data/ai/venv, add MODELS_PATH and DATA_DIR - Entrypoint bootstraps AI venv from /opt/venv on first container start with crash-safe temp directory pattern