• 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
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
AGENTS.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...