fix: HOME=/tmp im backend-image (user-overrides, streamrip-import)
CI / backend-tests (push) Successful in 10s
Docker images / version (push) Successful in 2s
CI / docker (push) Successful in 1m4s
Docker images / backend (push) Successful in 12s
Docker images / frontend (push) Successful in 7s

This commit is contained in:
loki committed 2026-10-04 14:20:02 +02:00
1 parent d6d1336b3f
commit f2761549f9
2 files changed
+7 -1

No files matched your search

+5 -1
View File
@@ -3,11 +3,15 @@ FROM python:3.12-slim
ARG UID=1000
ARG GID=1000
# HOME=/tmp: streamrip legt beim Import ~/.config an. Mit user:-Overrides
# (UID ohne passwd-Eintrag) würde das auf '/.config' fallen und scheitern.
# Die echte Config liegt ohnehin in STREAMRIP_CONFIG.
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
STREAMRIP_CONFIG=/config/config.toml \
STREAMRIP_DOWNLOAD_DIR=/downloads \
BACKEND_PORT=8000
BACKEND_PORT=8000 \
HOME=/tmp
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg git \
&& rm -rf /var/lib/apt/lists/* \
+2
View File
@@ -58,6 +58,8 @@ lokal Single-User **ohne Login** (bewusst, nur Heimnetz — nicht ins Internet s
auf das Config-Verzeichnis um (`_load_config`).
- Fehlende `config.toml` wird automatisch aus streamrip-Defaults angelegt
(`_ensure_config_exists`, Ordner = `STREAMRIP_DOWNLOAD_DIR`); ARL danach per UI.
- Image setzt `HOME=/tmp`: streamrip erstellt beim Import `~/.config` — mit
`user:`-UID-Overrides gäbe es sonst `Permission denied: '/.config'`.
- Next-14-Fallen: keine `use(params)`-Promise-Params; keine fremden Exporte aus
`page.tsx` (z. B. `sortByDate` → `app/lib/sort.ts`); `public/`-Copy im
Standalone-Dockerfile nötig; Healthcheck mit `127.0.0.1` statt `localhost`