This is a minimalist Docker container to play with the Gemini CLI.
- Clone this repository and enter the directory.
- Create the file
./config/envand add your GEMINI_API_KEY. - Run:
docker compose up -d gcli
Note: A shared folder (accessible by your host machine and the container) should have been created automatically at
./shared_folder.
If the installation succeeds, enter the container’s shell:
docker exec -ti gcli bashIf everything is properly set up, you can now use the gemini command. For example:
gemini -p "What's the meaning of life?"Output:
That's a profound question. Philosophers, theologians, and scientists have debated it for centuries, and there's no single answer. Here are some of the most common perspectives:
**Philosophical:**
* **Existentialism:** Life has no inherent meaning; you create your own through your choices and actions.
* **Absurdism:** The universe is irrational and meaningless, but we can find freedom and happiness by embracing this absurdity.
* **Stoicism:** The goal is to live a virtuous life in harmony with nature and reason.
**Religious:**
* **Christianity:** To love and serve God.
* **Islam:** To submit to the will of Allah.
* **Buddhism:** To escape suffering and achieve enlightenment (Nirvana).
* **Hinduism:** To break the cycle of reincarnation and achieve liberation (Moksha).
**Scientific:**
* **Evolutionary Biology:** To survive and reproduce.
* **Neuroscience:** The experience of meaning is a product of our brain's chemistry and wiring.
Ultimately, the meaning of life is a personal journey. Many people find meaning in relationships, creativity, service to others, or a connection to something larger than themselves.
Enjoy!