FROM node:22-slim AS builder WORKDIR /app RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources \ && apt-get update \ && apt-get install -y --no-install-recommends python3 make g++ cmake git \ && rm -rf /var/lib/apt/lists/* COPY gateway/core/channels/feishu/openclaw-lark . # 同路径文件覆盖 vendor,定制逻辑只维护在 openclaw-lark-patch(勿改 openclaw-lark 子模块工作区) COPY gateway/core/channels/feishu/openclaw-lark-patch . RUN sed -i 's|git+ssh://git@github.com/|git+https://github.com/|g' package-lock.json \ && npm install \ && npx tsc -p tsconfig.json --noEmit false --noEmitOnError false --outDir dist FROM node:22-slim AS runtime WORKDIR /app ENV NODE_ENV=production ENV FEISHU_HTTP_PORT=4380 COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/package-lock.json ./package-lock.json COPY --from=builder /app/dist ./dist RUN npm ci --omit=dev EXPOSE 4380 CMD ["node", "--experimental-loader", "./dist/src/http/esm-loader.js", "./dist/src/http/server.js"]