#8350: install gemini-cli inside docker container to allow for gemini-cli OAuth
docker
stale
size: XS
Cluster:
OAuth and CLI Fixes
closes #7377
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR updates the `Dockerfile` to install `@google/gemini-cli` globally inside the Node-based container image so users can complete Gemini CLI OAuth from within the container (closing #7377). The change happens late in the Docker build, after `pnpm build` and `chown`, and the container continues to run as the non-root `node` user at runtime.
<h3>Confidence Score: 4/5</h3>
- This PR is likely safe to merge, but it introduces a non-pinned root-level global npm install that affects reproducibility and supply-chain exposure.
- Only a small Dockerfile change is introduced and it’s unlikely to break runtime behavior, but pulling an unpinned global package during image build can lead to nondeterministic builds and larger security surface area if upstream changes.
- Dockerfile
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
**Context used:**
- Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8))
- Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13))
<!-- /greptile_comment -->
Most Similar PRs
#7781: fix: resolve Google Gemini CLI auth credential extraction #4585
by ManojPanda3 · 2026-02-03
76.4%
#4070: fix(docker): expose moltbot CLI in Docker image
by saianilsingi · 2026-01-29
76.0%
#23313: feat(docker): add optional build-arg OPENCLAW_INSTALL_DOCKER_CLI to...
by zhuxuwei88-bot · 2026-02-22
75.8%
#4550: fix: sync google-gemini-cli-auth tokens from external CLI (#3803)
by SalimBinYousuf1 · 2026-01-30
75.8%
#9102: Remove UI build for Discord-onlyUpdate Dockerfile
by nbliss16 · 2026-02-04
75.8%
#7489: feat: add brew to Dockerfile
by k2589 · 2026-02-02
75.7%
#11576: Update Dockerfile, change file ownership during copy to prevent long …
by fastali · 2026-02-08
75.5%
#8376: Docker: inline chown to reduce image size and build time
by bugparty · 2026-02-03
75.1%
#6631: fix: configure npm global prefix for non-root user in Docker
by tjetzinger · 2026-02-01
75.0%
#7342: fix(docker): ensure readability of docker-setup.sh
by esc-ouni · 2026-02-02
74.9%