Release room-scoped Matrix bot plugins and room configuration
This commit is contained in:
commit
86c7e4359c
76 files changed
+13539
No files matched your search
+30
@@ -0,0 +1,30 @@
|
||||
# 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 下载加密二进制。
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
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
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends openssl ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY package*.json ./
|
||||
RUN npm ci --omit=dev
|
||||
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/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 /app/plugins
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
Reference in new issue
Block a user