feat(cli): install local embedding runtime on demand

This commit is contained in:
digua committed 2026-08-01 13:19:41 +08:00
1 parent 93fc26fb83
commit f96fef7b46
29 files changed
+741 -55

No files matched your search

+2
View File
@@ -3,11 +3,13 @@
FROM node:24-bookworm-slim
ARG CHATLAB_VERSION
ENV CHATLAB_LOCAL_EMBEDDING_RUNTIME_DIR=/opt/chatlab/local-embedding
RUN test -n "$CHATLAB_VERSION" \
&& apt-get update \
&& apt-get install --yes --no-install-recommends g++ make python3 \
&& npm install --global --omit=dev "chatlab-cli@${CHATLAB_VERSION}" \
&& CHATLAB_SKIP_UPDATE_CHECK=1 chatlab runtime install local-embedding \
&& npm cache clean --force \
&& apt-get purge --yes --auto-remove g++ make python3 \
&& rm -rf /var/lib/apt/lists/*