A lightweight Docker container to run Google's gemini-cli securely and isolated, ideal for servers or environments without an updated Node.js.
- Docker
- Docker Compose
-
Clone this repository.
-
Copy the configuration template:
cp .env.example .env
-
Edit the
.envfile:
- Paste your
GEMINI_API_KEY. - Define
DATA_PATHwith the path of the folder on your computer that you want Gemini to analyze.
Build the image:
docker-compose buildRun Gemini (Interactive mode):
docker-compose run --rm geminiRun Gemini (YOLO mode - without asking for confirmation, useful for scripts):
docker-compose run --rm gemini --yolo- Conversation history is saved locally in
./gemini-data. - To resume a previous session, use the
--resumeflag.