Skip to content

Instantly share code, notes, and snippets.

@brmazzoni
Created July 3, 2025 02:32
Show Gist options
  • Select an option

  • Save brmazzoni/b2c75519c984ea71ddfe0efb969315a0 to your computer and use it in GitHub Desktop.

Select an option

Save brmazzoni/b2c75519c984ea71ddfe0efb969315a0 to your computer and use it in GitHub Desktop.
gemini-cli Dockerfile
# Works with alias: `gemini='docker run -it --rm -e GEMINI_API_KEY=$GEMINI_API_KEY -v $(pwd):/app -v ~/.gemini:/root/.gemini -w /app gemini-cli'`
FROM node
RUN apt-get update && apt-get install -y --no-install-recommends \
vim python3 \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN npm install -g @google/gemini-cli
CMD ["gemini"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment