mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
26 lines
583 B
Docker
26 lines
583 B
Docker
# 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/*
|
|
|
|
WORKDIR /home/node
|
|
|
|
RUN mkdir -p .chatlab \
|
|
&& chown node:node .chatlab
|
|
|
|
USER node
|
|
|
|
EXPOSE 3110
|
|
|
|
ENTRYPOINT ["chatlab"]
|
|
CMD ["start", "--no-open", "--host", "0.0.0.0"]
|