Skip to content

Tags: coolcow/docker-gemini

Tags

v0.4.0

Toggle v0.4.0's commit message
fix(docker): redeclare build args inside runtime stage for buildx

Redeclare TTYD_VERSION and DOCKER_CLI_VERSION after FROM node:22 so both variables are guaranteed to be available in stage RUN instructions with buildx/docker-container driver.

This prevents Docker CLI download URLs from resolving with empty or missing version values in CI and avoids false 404 failures during image build.

v0.3.0

Toggle v0.3.0's commit message
refactor: switch runtime mode selection to RUN_MODE env var

Replace positional startup mode arguments with RUN_MODE-based behavior and default to CLI mode. Update compose configuration and smoke test expectations accordingly. Refresh README with updated usage and setup examples.

v0.2.1

Toggle v0.2.1's commit message
fix: ttyd command quotes removed, workdir added

v0.2.0

Toggle v0.2.0's commit message
refactor: Improve user handling and switch to Debian base image

This commit introduces several key improvements to the Docker image configuration and entrypoint script to enhance stability and robustness.

The base image has been switched from Alpine to the official Debian-based Node.js image (`node:22`). This resolves intermittent crashes observed with `gemini-cli` during shell
command execution on Alpine Linux, providing a more stable runtime environment.

The entrypoint script has been significantly refactored to handle user and group ID management more intelligently. Instead of failing or taking over existing UIDs/GIDs, the script
now remaps any conflicting user or group to a new, unused ID. This prevents permissions errors and makes the container more adaptable to different host environments.

Additionally, the unused `WORKSPACE` environment variable has been removed from the Dockerfile and documentation to simplify the configuration.

v0.1.1

Toggle v0.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix parameter handling with quotes in gosu command

Wrap the command in a bash -c string using careful quoting and positional parameters.
This ensures that arguments containing quotes are correctly passed to the GEMINI_CMD.

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Ensure GEMINI_HOME directory exists before user creation

Added logic to create the GEMINI_HOME directory if it does not exist before creating the Gemini user.