mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
ci: publish multi-arch ChatLab CLI image
This commit is contained in:
1 parent
21b40358c2
commit
5806a1fcb5
2 files changed
+78
No files matched your search
@@ -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"]
|
||||
Reference in new issue
Block a user