mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-20 18:14:29 -07:00
Add note about root privileges in sandbox docs (#23314)
This commit is contained in:
@@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user