Skip to content

Commit 936f2cb

Browse files
chaodu-agent超渡法師
andauthored
fix(docker): pre-create /home/node/.gemini with correct ownership (#747)
Docker bind-mounts auto-create missing parent directories as root. When docker-compose mounts files into /home/node/.gemini/, the directory ends up root-owned, causing gemini CLI to crash with EACCES when writing projects.json. Pre-create the directory and chown to node:node before switching to USER node. Closes #740 Co-authored-by: 超渡法師 <chaodu@openab.dev>
1 parent 10ce0f9 commit 936f2cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile.gemini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ WORKDIR /home/node
2727

2828
COPY --from=builder --chown=node:node /build/target/release/openab /usr/local/bin/openab
2929

30+
RUN mkdir -p /home/node/.gemini && chown -R node:node /home/node/.gemini
31+
3032
USER node
3133
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
3234
CMD pgrep -x openab || exit 1

0 commit comments

Comments
 (0)