File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1515ARG OPENCLAW_EXTENSIONS=""
1616ARG OPENCLAW_VARIANT=default
1717ARG OPENCLAW_BUNDLED_PLUGIN_DIR=extensions
18+ ARG OPENCLAW_EXCLUDE_BUNDLED_PLUGINS="qqbot feishu"
1819ARG OPENCLAW_DOCKER_APT_UPGRADE=1
1920ARG OPENCLAW_NODE_BOOKWORM_IMAGE="node:24-bookworm@sha256:3a09aa6354567619221ef6c45a5051b671f953f0a1924d1f819ffb236e520e6b"
2021ARG OPENCLAW_NODE_BOOKWORM_DIGEST="sha256:3a09aa6354567619221ef6c45a5051b671f953f0a1924d1f819ffb236e520e6b"
@@ -101,7 +102,14 @@ RUN pnpm ui:build
101102# Prune dev dependencies and strip build-only metadata before copying
102103# runtime assets into the final image.
103104FROM build AS runtime-assets
105+ ARG OPENCLAW_BUNDLED_PLUGIN_DIR
106+ ARG OPENCLAW_EXCLUDE_BUNDLED_PLUGINS
104107RUN CI=true pnpm prune --prod && \
108+ for plugin in $OPENCLAW_EXCLUDE_BUNDLED_PLUGINS; do \
109+ if [ -n "$plugin" ]; then \
110+ rm -rf "${OPENCLAW_BUNDLED_PLUGIN_DIR}/$plugin" ; \
111+ fi; \
112+ done && \
105113 find dist -type f \( -name '*.d.ts' -o -name '*.d.mts' -o -name '*.d.cts' -o -name '*.map' \) -delete
106114
107115FROM ${OPENCLAW_NODE_BOOKWORM_IMAGE} AS base-default
You can’t perform that action at this time.
0 commit comments