• Johnny's avatar
    fix: auto-fix permission issues when upgrading from 0.25.3 to 0.26.0 · d14cfa1c
    Johnny authored
    Fixes #5551
    
    The Docker image now runs as non-root (UID 10001) for security, but this
    breaks upgrades from 0.25.3 where data files were owned by root.
    
    Changes:
    - Dockerfile: Keep USER as root, install su-exec
    - entrypoint.sh: Fix ownership of /var/opt/memos, then drop to non-root
    - Supports custom MEMOS_UID/MEMOS_GID env vars for flexibility
    
    This allows seamless upgrades without manual chown on the host.
    d14cfa1c
Name
Last commit
Last update
..
Dockerfile Loading commit data...
build.sh Loading commit data...
compose.yaml Loading commit data...
entrypoint.sh Loading commit data...
entrypoint_test.sh Loading commit data...