Skip to content

Instantly share code, notes, and snippets.

@sulrich
Last active July 3, 2025 16:07
Show Gist options
  • Save sulrich/2503655b42f6335fca95ded9352d2f4a to your computer and use it in GitHub Desktop.
Save sulrich/2503655b42f6335fca95ded9352d2f4a to your computer and use it in GitHub Desktop.
gemini-cli Dockerfile
# is there a lighter container that fits the bill here?
FROM node:20
RUN useradd -m gemini
RUN apt-get update && \
apt-get install -y nodejs npm && \
rm -rf /var/lib/apt/lists/*
RUN npm install -g @google/gemini-cli
WORKDIR /app
RUN chown -R gemini:gemini /app
USER gemini
# default command to run on start
CMD ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment