Revert: USER appuser in Dockerfile auskommentiert (DSM-ACL-Konflikt), SW by-v1117
Container startete mit USER appuser nicht: SQLite gibt 'attempt to write a readonly database' — Synology DSM Volume- Permissions blockieren chown auf gemountete Pfade. User-Anlage (groupadd/useradd) bleibt im Dockerfile, plus chown nach mkdir. Nur die USER-Zeile ist auskommentiert mit Kommentar warum. Für Non-DS-Deployments einfach Zeile aktivieren. VAPID-Keys-Migration bleibt — die war erfolgreich.
This commit is contained in:
parent
83b1509168
commit
7751d303bb
6 changed files with 23 additions and 20 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -23,12 +23,15 @@ COPY backend/ .
|
|||
# Zentrale Version (wird von main.py beim Startup gelesen)
|
||||
COPY VERSION /app/VERSION
|
||||
|
||||
# Media-Verzeichnis + Permissions
|
||||
# Media-Verzeichnis
|
||||
RUN mkdir -p /data/media/dogs /data/media/diary /data/media/poison \
|
||||
/data/media/breeds/gallery /data/media/breeds/submissions && \
|
||||
chown -R appuser:appuser /app /data
|
||||
/data/media/breeds/gallery /data/media/breeds/submissions
|
||||
|
||||
USER appuser
|
||||
# USER appuser auskommentiert: Synology DSM Volume-ACLs blockieren das
|
||||
# (SQLite OperationalError: 'attempt to write a readonly database'). User-
|
||||
# Anlage bleibt im Dockerfile damit nicht-DS-Deployments später wechseln
|
||||
# können via `USER appuser` Zeile auskommentieren-entfernen.
|
||||
# USER appuser
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue