Files
wehub-resource-sync f9447f8e5f
CI / typecheck · build · test · bundle-size (push) Failing after 1s
CI / clean-room dependency closure smoke (push) Failing after 1s
CI / server-runtime e2e (docker · pg + valkey) (push) Failing after 2s
Deploy Install Scripts / deploy (push) Failing after 2s
Windows / build (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:07:03 +08:00

47 lines
1.3 KiB
Docker

FROM ghcr.io/openclaw/openclaw:main
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
RUN npm install -g typescript@5
WORKDIR /tmp/claude-mem-plugin
COPY package.json tsconfig.json openclaw.plugin.json ./
COPY src/ ./src/
RUN NODE_ENV=development npm install && npx tsc
RUN mkdir -p /tmp/claude-mem-installable/dist && \
cp dist/index.js /tmp/claude-mem-installable/dist/ && \
cp dist/index.d.ts /tmp/claude-mem-installable/dist/ 2>/dev/null || true && \
cp openclaw.plugin.json /tmp/claude-mem-installable/ && \
node -e " \
const pkg = { \
name: 'claude-mem', \
version: '1.0.0', \
type: 'module', \
main: 'dist/index.js', \
openclaw: { extensions: ['./dist/index.js'] } \
}; \
require('fs').writeFileSync('/tmp/claude-mem-installable/package.json', JSON.stringify(pkg, null, 2)); \
"
WORKDIR /app
USER node
RUN mkdir -p /home/node/.openclaw
RUN node openclaw.mjs plugins install /tmp/claude-mem-installable
RUN node openclaw.mjs plugins enable claude-mem
COPY --chown=node:node e2e-verify.sh /app/e2e-verify.sh
USER root
RUN chmod +x /app/e2e-verify.sh && \
cp /tmp/claude-mem-plugin/dist/mock-worker.js /app/mock-worker.js
USER node
CMD ["/bin/bash", "/app/e2e-verify.sh"]