diff --git a/CHANGELOG.md b/CHANGELOG.md index f57be7dfe..fa786ff42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - CLI/Status: improve Tailscale reporting in `status --all` and harden parsing of noisy `tailscale status --json` output. - CLI/Status: make `status --all` scan progress determinate (OSC progress + spinner). - Terminal/Table: ANSI-safe wrapping to prevent table clipping/color loss; add regression coverage. +- Docker: allow optional apt packages during image build and document the build arg. (#697) — thanks @gabriel-trigo. - CLI/Update: gate progress spinner on stdout TTY and align clean-check step label. (#701) — thanks @bjesuiter. - macOS: clear unsigned launchd overrides on signed restarts and warn via doctor when attach-only/disable markers are set. (#695) — thanks @jeffersonwarrior. diff --git a/Dockerfile b/Dockerfile index c7c5eb507..b0bbebee0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,9 @@ WORKDIR /app ARG CLAWDBOT_DOCKER_APT_PACKAGES="" RUN if [ -n "$CLAWDBOT_DOCKER_APT_PACKAGES" ]; then \ apt-get update && \ - apt-get install -y --no-install-recommends $CLAWDBOT_DOCKER_APT_PACKAGES && \ - rm -rf /var/lib/apt/lists/*; \ + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $CLAWDBOT_DOCKER_APT_PACKAGES && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*; \ fi COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./ diff --git a/docs/install/docker.md b/docs/install/docker.md index 5536cbf3f..112ce5273 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -43,6 +43,11 @@ This script: - starts the gateway via Docker Compose - generates a gateway token and writes it to `.env` +Optional env vars: +- `CLAWDBOT_DOCKER_APT_PACKAGES` — install extra apt packages during build +- `CLAWDBOT_EXTRA_MOUNTS` — add extra host bind mounts +- `CLAWDBOT_HOME_VOLUME` — persist `/home/node` in a named volume + After it finishes: - Open `http://127.0.0.1:18789/` in your browser. - Paste the token into the Control UI (Settings → token).