fix: harden docker apt install (#697) (thanks @gabriel-trigo)
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
- CLI/Status: improve Tailscale reporting in `status --all` and harden parsing of noisy `tailscale status --json` output.
|
- 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).
|
- 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.
|
- 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.
|
- 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.
|
- macOS: clear unsigned launchd overrides on signed restarts and warn via doctor when attach-only/disable markers are set. (#695) — thanks @jeffersonwarrior.
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ WORKDIR /app
|
|||||||
ARG CLAWDBOT_DOCKER_APT_PACKAGES=""
|
ARG CLAWDBOT_DOCKER_APT_PACKAGES=""
|
||||||
RUN if [ -n "$CLAWDBOT_DOCKER_APT_PACKAGES" ]; then \
|
RUN if [ -n "$CLAWDBOT_DOCKER_APT_PACKAGES" ]; then \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y --no-install-recommends $CLAWDBOT_DOCKER_APT_PACKAGES && \
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends $CLAWDBOT_DOCKER_APT_PACKAGES && \
|
||||||
rm -rf /var/lib/apt/lists/*; \
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
|
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
|
||||||
|
|||||||
@@ -43,6 +43,11 @@ This script:
|
|||||||
- starts the gateway via Docker Compose
|
- starts the gateway via Docker Compose
|
||||||
- generates a gateway token and writes it to `.env`
|
- 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:
|
After it finishes:
|
||||||
- Open `http://127.0.0.1:18789/` in your browser.
|
- Open `http://127.0.0.1:18789/` in your browser.
|
||||||
- Paste the token into the Control UI (Settings → token).
|
- Paste the token into the Control UI (Settings → token).
|
||||||
|
|||||||
Reference in New Issue
Block a user