ci: publish multi-arch ChatLab CLI image

This commit is contained in:
KokerZhou authored and digua committed 2026-07-22 09:59:50 +08:00
1 parent 21b40358c2
commit 5806a1fcb5
2 files changed
+78

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# syntax=docker/dockerfile:1
FROM node:24-bookworm-slim
ARG CHATLAB_VERSION
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}" \
&& npm cache clean --force \
&& apt-get purge --yes --auto-remove g++ make python3 \
&& rm -rf /var/lib/apt/lists/*
ENV CHATLAB_DATA_DIR=/data
RUN install -d -o node -g node /data
WORKDIR /data
USER node
EXPOSE 3110
ENTRYPOINT ["chatlab"]
CMD ["start", "--no-open", "--host", "0.0.0.0"]