feat(docker): optional apt packages in docker-setup

This commit is contained in:
Gabriel Trigo
2026-01-11 00:06:19 +00:00
committed by Peter Steinberger
parent f5670cae06
commit ff14e743ea
3 changed files with 34 additions and 2 deletions

View File

@@ -8,6 +8,13 @@ RUN corepack enable
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/*; \
fi
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./
COPY ui/package.json ./ui/package.json
COPY patches ./patches