Document non-root container, shared login, and data folder permission fix

- PORTAINER_DEPLOY.md: add the chown step needed after the container
  switched to a non-root user, and note EACCES as the symptom if skipped.
- Update CHANGELOG for the shared login, non-root Dockerfile, and
  cap_drop/no-new-privileges hardening.
This commit is contained in:
2026-09-29 18:03:39 -07:00
parent 0f53a159f0
commit d6e83dcdf5
4 changed files with 30 additions and 2 deletions

View File

@@ -7,6 +7,13 @@ COPY server.js ./
COPY tools ./tools
COPY skills ./skills
# Run as the "node" user baked into this image, not root. /app/data is
# where the token quota file and sign-in audit log get written (mounted
# as a volume in docker-compose.yml), so it needs to be writable by that
# user before the switch.
RUN mkdir -p /app/data && chown -R node:node /app
USER node
ENV PORT=5173
EXPOSE 5173