Add room-scoped Matrix plugins and bilingual configuration commands

This commit is contained in:
Matrix Bot Project committed 2026-11-20 23:29:33 +08:00
1 parent 061bfbd12a
commit f4f30c3b5c
75 files changed
+2559 -1975

No files matched your search

+6 -6
View File
@@ -1,6 +1,4 @@
# 使用 debian(glibc)而非 alpine(musl):原生加密模块
# @matrix-org/matrix-sdk-crypto-nodejs 在 arm64 上只提供 gnu(glibc)预编译,
# 不支持 arm64-musl;debian 同时覆盖 x64/arm64,适配 Apple Silicon 上的 Docker。
# Use glibc for compatibility with the native encryption and database engines.
FROM node:22-slim AS build
WORKDIR /app
# openssl: Prisma 引擎;ca-certificates: postinstall 从 github 下载加密二进制。
@@ -8,7 +6,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-cert
&& rm -rf /var/lib/apt/lists/*
COPY package*.json ./
RUN npm ci
COPY . .
COPY src ./src
COPY prisma ./prisma
COPY tsconfig*.json nest-cli.json ./
RUN npm run prisma:generate && npm run build
FROM node:22-slim AS runtime
@@ -22,9 +22,9 @@ COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules/.prisma ./node_modules/.prisma
COPY --from=build /app/node_modules/@prisma ./node_modules/@prisma
COPY prisma ./prisma
COPY config ./config
COPY config/bots.example.yaml ./config/bots.example.yaml
COPY docker-entrypoint.sh ./
RUN chmod +x docker-entrypoint.sh
# 数据目录(运行时由 compose 把宿主 ./data 挂载到此;含 SQLite 与加密 store)。
RUN mkdir -p /app/data
RUN mkdir -p /app/data /app/plugins
ENTRYPOINT ["./docker-entrypoint.sh"]