feat: add git-consistent memory gateway architecture

This commit is contained in:
lingyuzeng
2026-03-07 22:33:41 +08:00
commit d4cd81f498
40 changed files with 2114 additions and 0 deletions

40
Dockerfile Normal file
View File

@@ -0,0 +1,40 @@
FROM node:22-bookworm-slim
ENV NODE_ENV=production \
QMD_VERSION=1.0.7 \
XDG_CACHE_HOME=/var/lib/qmd/cache \
XDG_CONFIG_HOME=/var/lib/qmd/config \
QMD_HTTP_PORT=8181
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
cmake \
socat \
tini \
python3 \
make \
g++ \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g "@tobilu/qmd@${QMD_VERSION}" \
&& npm cache clean --force
WORKDIR /app
RUN mkdir -p \
/app/scripts \
/var/lib/qmd/cache \
/var/lib/qmd/config \
/data/knowledge \
/data/workspaces \
/data/testdata
COPY scripts/qmd-entrypoint.sh /app/scripts/qmd-entrypoint.sh
RUN chmod +x /app/scripts/qmd-entrypoint.sh
EXPOSE 8181
ENTRYPOINT ["/usr/bin/tini", "--", "/app/scripts/qmd-entrypoint.sh"]