You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(docker): make mounted data volume writable for the non-root user (0.9.22)
Railway (and other platforms) mount persistent volumes owned by root, so the
non-root 'nextjs' user could not open the SQLite store at /app/data, failing with
'SqliteError: unable to open database file'.
Add docker-entrypoint.sh: when started as root, chown the data dir to nextjs and
drop privileges via gosu; otherwise exec directly. Drop the hardcoded USER nextjs
so the container can fix volume perms at startup, then run as nextjs. Verified the
mechanism locally: entrypoint chowns /app/data to nextjs and pid 1 runs as uid 1001.
Bump to 0.9.22 and point the Railway template at the new image.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments