Skip to content

fix(docker): support root-mounted token files - #284

Closed
vanphandinh wants to merge 1 commit into
aurora-develop:mainfrom
vanphandinh:fix-docker-session-tokens
Closed

fix(docker): support root-mounted token files#284
vanphandinh wants to merge 1 commit into
aurora-develop:mainfrom
vanphandinh:fix-docker-session-tokens

Conversation

@vanphandinh

Copy link
Copy Markdown

Summary

Make Aurora resolve relative token-file paths from /, so deployments can mount session_tokens.txt directly at:

./session_tokens.txt:/session_tokens.txt

without modifying the repository's default docker-compose.yml.

Root cause

Aurora loads token files using relative paths such as session_tokens.txt. The distroless runtime image did not set an explicit WORKDIR, so the relative lookup did not resolve from the filesystem root.

Fix

  • Set runtime WORKDIR / in Dockerfile.
  • Leave the default docker-compose.yml unchanged.

This removes the need to mount the file under /home/nonroot/session_tokens.txt.

@vanphandinh vanphandinh closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant