mirror of
https://github.com/google-gemini/gemini-cli
synced 2026-04-21 21:47:19 +00:00
Add note about root privileges in sandbox docs (#23314)
This commit is contained in:
parent
1b052df52f
commit
f618da15d6
1 changed files with 5 additions and 1 deletions
|
|
@ -2352,9 +2352,13 @@ can be based on the base sandbox image:
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM gemini-cli-sandbox
|
FROM gemini-cli-sandbox
|
||||||
|
|
||||||
# Add your custom dependencies or configurations here
|
# Add your custom dependencies or configurations here.
|
||||||
|
# Note: The base image runs as the non-root 'node' user.
|
||||||
|
# You must switch to 'root' to install system packages.
|
||||||
# For example:
|
# For example:
|
||||||
|
# USER root
|
||||||
# RUN apt-get update && apt-get install -y some-package
|
# RUN apt-get update && apt-get install -y some-package
|
||||||
|
# USER node
|
||||||
# COPY ./my-config /app/my-config
|
# COPY ./my-config /app/my-config
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue